Interface FunctionCallingOptions

All Superinterfaces:
ChatOptions, ModelOptions
All Known Implementing Classes:
AnthropicChatOptions, AzureOpenAiChatOptions, FunctionCallingOptionsBuilder.PortableFunctionCallingOptions, MiniMaxChatOptions, MistralAiChatOptions, MoonshotChatOptions, OllamaOptions, OpenAiChatOptions, VertexAiGeminiChatOptions, ZhiPuAiChatOptions

public interface FunctionCallingOptions extends ChatOptions
FunctionCallingOptions is a set of options that can be used to configure the function calling behavior of the ChatModel.
Author:
Christian Tzolov
  • Method Details

    • builder

      Returns:
      Returns FunctionCallingOptionsBuilder to create a new instance of FunctionCallingOptions.
    • getFunctionCallbacks

      List<FunctionCallback> getFunctionCallbacks()
      Function Callbacks to be registered with the ChatModel. For Prompt Options the functionCallbacks are automatically enabled for the duration of the prompt execution. For Default Options the FunctionCallbacks are registered but disabled by default. You have to use "functions" property to list the function names from the ChatModel registry to be used in the chat completion requests.
      Returns:
      Return the Function Callbacks to be registered with the ChatModel.
    • setFunctionCallbacks

      void setFunctionCallbacks(List<FunctionCallback> functionCallbacks)
      Set the Function Callbacks to be registered with the ChatModel.
      Parameters:
      functionCallbacks - the Function Callbacks to be registered with the ChatModel.
    • getFunctions

      Set<String> getFunctions()
      Returns:
      Set of function names from the ChatModel registry to be used in the next chat completion requests.
    • setFunctions

      void setFunctions(Set<String> functions)
      Set the list of function names from the ChatModel registry to be used in the next chat completion requests.
      Parameters:
      functions - the list of function names from the ChatModel registry to be used in the next chat completion requests.
    • getProxyToolCalls

      default Boolean getProxyToolCalls()
    • setProxyToolCalls

      default void setProxyToolCalls(Boolean proxyToolCalls)
    • getToolContext

      Map<String,Object> getToolContext()
    • setToolContext

      void setToolContext(Map<String,Object> tooContext)