Interface ToolCallingChatOptions

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

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
  • Method Details

    • getToolCallbacks

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

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

      void setToolCallbacks(ToolCallback... 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> tools)
      Set the names of the tools to register with the ChatModel.
    • setTools

      void setTools(String... tools)
      Set the names of the tools to register with the ChatModel.
    • getToolCallReturnDirect

      @Nullable Boolean getToolCallReturnDirect()
      Whether the result of each tool call should be returned directly or passed back to the model. It can be overridden for each ToolCallback instance via ToolMetadata.returnDirect().
    • setToolCallReturnDirect

      void setToolCallReturnDirect(@Nullable Boolean toolCallReturnDirect)
      Set whether the result of each tool call should be returned directly or passed back to the model. It can be overridden for each ToolCallback instance via ToolMetadata.returnDirect().
    • builder

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