Package org.eclnt.ccee.prompting
Class PromptingWithToolsBase
java.lang.Object
org.eclnt.ccee.prompting.PromptingBase
org.eclnt.ccee.prompting.PromptingWithToolsBase
- All Implemented Interfaces:
IPrompting,IPromptingWithTools
- Direct Known Subclasses:
PromptingChatGPT,PromptingChatGPTResponsesAPI
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclnt.ccee.prompting.PromptingBase
PromptingBase.ErrorRequestCancelled, PromptingBase.PromptingRequestThread -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected IPromptingContextToToolsThreadAssignerprotected IPromptingToolFields inherited from class org.eclnt.ccee.prompting.PromptingBase
m_listeners -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcallBackTools(PromptingToolCalls toolCalls) voidOptional 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 class org.eclnt.ccee.prompting.PromptingBase
addInitialSystemMessage, addInterimComment, addMessage, addMessageExtender, addPromptingListener, cancelCurrentRequest, createRequestThread, getMessageExtenders, getWithInterimFramgents, mdComment, prepareNewMessage, processResponseCompleted, processResponseMarkdownFragmentReceived, removeMessageExtender, removePromptingListener, setWithInterimFramgents, startNewMessage, startNewMessageExecuteMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclnt.ccee.prompting.IPrompting
addInterimComment, addMessage, addPromptingListener, cancelCurrentRequest, postIsolatedPrompt, removePromptingListener, startNewMessage
-
Field Details
-
m_promptingTool
-
m_contextAssigner
-
-
Constructor Details
-
PromptingWithToolsBase
public PromptingWithToolsBase()
-
-
Method Details
-
initializeTool
Description copied from interface:IPromptingWithToolsPasses the tool definition.- Specified by:
initializeToolin interfaceIPromptingWithTools
-
initializeContextToToolsThreadAssigner
public void initializeContextToToolsThreadAssigner(IPromptingContextToToolsThreadAssigner contextAssigner) Description copied from interface:IPromptingWithToolsOptional 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...- Specified by:
initializeContextToToolsThreadAssignerin interfaceIPromptingWithTools
-
processToolOutput
Description copied from interface:IPromptingWithToolsThis function to be called by the callback processing transferring the result of processing back to the LLM.- Specified by:
processToolOutputin interfaceIPromptingWithTools
-
callBackTools
-