Interface ToolCallingChatOptions

All Superinterfaces:
ChatOptions, FunctionCallingOptions, ModelOptions
All Known Implementing Classes:
DefaultToolCallingChatOptions, OllamaOptions

public interface ToolCallingChatOptions extends FunctionCallingOptions
A set of options that can be used to configure the interaction with a chat model, including tool calling.
Since:
1.0.0
Author:
Thomas Vitale
  • Field Details

    • DEFAULT_TOOL_EXECUTION_ENABLED

      static final boolean DEFAULT_TOOL_EXECUTION_ENABLED
      See Also:
  • Method Details

    • getToolCallbacks

      List<FunctionCallback> getToolCallbacks()
      ToolCallbacks to be registered with the ChatModel.
    • setToolCallbacks

      void setToolCallbacks(List<FunctionCallback> toolCallbacks)
      Set the ToolCallbacks to be registered with the ChatModel.
    • getTools

      Set<String> getTools()
      Names of the tools to register with the ChatModel.
    • setTools

      void setTools(Set<String> toolNames)
      Set the names of the tools to register with the ChatModel.
    • isInternalToolExecutionEnabled

      @Nullable Boolean isInternalToolExecutionEnabled()
      Whether the ChatModel is responsible for executing the tools requested by the model or if the tools should be executed directly by the caller.
    • setInternalToolExecutionEnabled

      void setInternalToolExecutionEnabled(@Nullable Boolean internalToolExecutionEnabled)
      Set whether the ChatModel is responsible for executing the tools requested by the model or if the tools should be executed directly by the caller.
    • builder

      A builder to create a new ToolCallingChatOptions instance.
      Returns:
      Returns DefaultFunctionCallingOptionsBuilder to create a new instance of FunctionCallingOptions.
    • isInternalToolExecutionEnabled

      static boolean isInternalToolExecutionEnabled(ChatOptions chatOptions)
    • mergeToolNames

      static Set<String> mergeToolNames(Set<String> runtimeToolNames, Set<String> defaultToolNames)
    • mergeToolCallbacks

      static List<FunctionCallback> mergeToolCallbacks(List<FunctionCallback> runtimeToolCallbacks, List<FunctionCallback> defaultToolCallbacks)