Package org.eclnt.ccee.prompting
Interface IPromptingWithTools
- All Superinterfaces:
IPrompting
- All Known Implementing Classes:
PromptingChatGPT,PromptingChatGPTResponsesAPI,PromptingWithToolsBase
Prompting to a LLM which supports the definition of tool callbacks - in
addition to the normal prompting functions.
-
Method Summary
Modifier and TypeMethodDescriptionvoidOptional interface, for explicit thread context initialization during call backs to tools. - Is currently not really required because typically all communication to LLM is happening within one thread. - Will be important if e.g. tool call backs are distributed to parallel threads...voidinitializeTool(IPromptingTool tool) Passes the tool definition.voidThis function to be called by the callback processing transferring the result of processing back to the LLM.Methods inherited from interface org.eclnt.ccee.prompting.IPrompting
addInterimComment, addMessage, addPromptingListener, cancelCurrentRequest, postIsolatedPrompt, removePromptingListener, startNewMessage
-
Method Details
-
initializeTool
Passes the tool definition. -
initializeContextToToolsThreadAssigner
Optional interface, for explicit thread context initialization during call backs to tools. - Is currently not really required because typically all communication to LLM is happening within one thread. - Will be important if e.g. tool call backs are distributed to parallel threads... -
processToolOutput
This function to be called by the callback processing transferring the result of processing back to the LLM.
-