Interface FunctionCallingOptions
- All Superinterfaces:
ChatOptions,ModelOptions
- All Known Subinterfaces:
ToolCallingChatOptions
- All Known Implementing Classes:
AnthropicChatOptions,AzureOpenAiChatOptions,DefaultFunctionCallingOptions,DefaultToolCallingChatOptions,MiniMaxChatOptions,MistralAiChatOptions,MoonshotChatOptions,OllamaOptions,OpenAiChatOptions,VertexAiGeminiChatOptions,ZhiPuAiChatOptions
Deprecated.
FunctionCallingOptions is a set of options that can be used to configure the function
calling behavior of the ChatModel.
- Author:
- Christian Tzolov, Ilayaperumal Gopinathan
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceDeprecated.Builder for creatingFunctionCallingOptionsinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Deprecated.Creates a newChatOptions.Builderto create the defaultChatOptions.Deprecated.Function Callbacks to be registered with the ChatModel.Deprecated.default BooleanDeprecated.Deprecated.voidsetFunctionCallbacks(List<FunctionCallback> functionCallbacks) Deprecated.Set the Function Callbacks to be registered with the ChatModel.voidsetFunctions(Set<String> functions) Deprecated.Set the list of function names from the ChatModel registry to be used in the next chat completion requests.default voidsetProxyToolCalls(Boolean proxyToolCalls) Deprecated.voidsetToolContext(Map<String, Object> tooContext) Deprecated.Methods inherited from interface org.springframework.ai.chat.prompt.ChatOptions
copy, getFrequencyPenalty, getMaxTokens, getModel, getPresencePenalty, getStopSequences, getTemperature, getTopK, getTopP
-
Method Details
-
builder
Deprecated.Description copied from interface:ChatOptionsCreates a newChatOptions.Builderto create the defaultChatOptions.- Returns:
- Returns
DefaultFunctionCallingOptionsBuilderto create a new instance ofFunctionCallingOptions.
-
getFunctionCallbacks
List<FunctionCallback> getFunctionCallbacks()Deprecated.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
Deprecated.Set the Function Callbacks to be registered with the ChatModel.- Parameters:
functionCallbacks- the Function Callbacks to be registered with the ChatModel.
-
getFunctions
Deprecated.- Returns:
Setof function names from the ChatModel registry to be used in the next chat completion requests.
-
setFunctions
Deprecated.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
Deprecated. -
setProxyToolCalls
Deprecated. -
getToolContext
Deprecated. -
setToolContext
Deprecated.
-
ToolCallingChatOptions.