Interface IPromptingWithTools

All Superinterfaces:
IPrompting
All Known Implementing Classes:
PromptingChatGPT, PromptingChatGPTResponsesAPI, PromptingWithToolsBase

public interface IPromptingWithTools extends IPrompting
Prompting to a LLM which supports the definition of tool callbacks - in addition to the normal prompting functions.
  • Method Details

    • initializeTool

      void initializeTool(IPromptingTool tool)
      Passes the tool definition.
    • initializeContextToToolsThreadAssigner

      void initializeContextToToolsThreadAssigner(IPromptingContextToToolsThreadAssigner contextAssigner)
      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

      void processToolOutput(PromptingToolOutputs ptos)
      This function to be called by the callback processing transferring the result of processing back to the LLM.