Package net.stoerr.chatgpt.codevengine
Class ExecuteOpenAIToolCallAction
- java.lang.Object
-
- jakarta.servlet.GenericServlet
-
- jakarta.servlet.http.HttpServlet
-
- net.stoerr.chatgpt.codevengine.AbstractPluginAction
-
- net.stoerr.chatgpt.codevengine.ExecuteOpenAIToolCallAction
-
- All Implemented Interfaces:
jakarta.servlet.Servlet
,jakarta.servlet.ServletConfig
,Serializable
public class ExecuteOpenAIToolCallAction extends AbstractPluginAction
Executes an OpenAI tool call coming in as JSON - for usage outside ChatGPT.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class net.stoerr.chatgpt.codevengine.AbstractPluginAction
BINARY_FILES_PATTERN, gitIgnoreRules, gson
-
-
Constructor Summary
Constructors Constructor Description ExecuteOpenAIToolCallAction(Map<String,AbstractPluginAction> handlers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doPost(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp)
String
getUrl()
The URL it is deployed at, e.g.String
openApiDescription()
This is not registered in the yaml description since it's not a normal action, but rather distributes to actions.-
Methods inherited from class net.stoerr.chatgpt.codevengine.AbstractPluginAction
abbreviate, findMatchingFiles, getBodyParameter, getMandatoryQueryParam, getPath, getQueryParam, getSimilarFilesMessage, gitIgnored, isIgnored, isNotEmpty, sendError
-
Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
-
-
-
-
Constructor Detail
-
ExecuteOpenAIToolCallAction
public ExecuteOpenAIToolCallAction(Map<String,AbstractPluginAction> handlers)
-
-
Method Detail
-
getUrl
public String getUrl()
Description copied from class:AbstractPluginAction
The URL it is deployed at, e.g. /listFiles.- Specified by:
getUrl
in classAbstractPluginAction
-
openApiDescription
public String openApiDescription()
This is not registered in the yaml description since it's not a normal action, but rather distributes to actions.- Specified by:
openApiDescription
in classAbstractPluginAction
-
doPost
protected void doPost(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException, IOException
- Overrides:
doPost
in classjakarta.servlet.http.HttpServlet
- Throws:
jakarta.servlet.ServletException
IOException
-
-