Class DefaultFunctionCallingOptions
java.lang.Object
org.springframework.ai.model.function.DefaultFunctionCallingOptions
- All Implemented Interfaces:
ChatOptions
,FunctionCallingOptions
,ModelOptions
@Deprecated
public class DefaultFunctionCallingOptions
extends Object
implements FunctionCallingOptions
Deprecated.
Default implementation of
FunctionCallingOptions
.- Author:
- Christian Tzolov, Thomas Vitale, Ilayaperumal Gopinathan
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.ai.model.function.FunctionCallingOptions
FunctionCallingOptions.Builder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T extends ChatOptions>
Tcopy()
Deprecated.Returns a copy of thisChatOptions
.Deprecated.Returns the frequency penalty to use for the chat.Deprecated.Function Callbacks to be registered with the ChatModel.Deprecated.Deprecated.Returns the maximum number of tokens to use for the chat.getModel()
Deprecated.Returns the model to use for the chat.Deprecated.Returns the presence penalty to use for the chat.Deprecated.Deprecated.Returns the stop sequences to use for the chat.Deprecated.Returns the temperature to use for the chat.Deprecated.getTopK()
Deprecated.Returns the top K to use for the chat.getTopP()
Deprecated.Returns the top P to use for the chat.merge
(ChatOptions options) Deprecated.void
setFrequencyPenalty
(Double frequencyPenalty) Deprecated.void
setFunctionCallbacks
(List<FunctionCallback> functionCallbacks) Deprecated.Set the Function Callbacks to be registered with the ChatModel.void
setFunctions
(Set<String> functions) Deprecated.Set the list of function names from the ChatModel registry to be used in the next chat completion requests.void
setMaxTokens
(Integer maxTokens) Deprecated.void
Deprecated.void
setPresencePenalty
(Double presencePenalty) Deprecated.void
setProxyToolCalls
(Boolean proxyToolCalls) Deprecated.void
setStopSequences
(List<String> stopSequences) Deprecated.void
setTemperature
(Double temperature) Deprecated.void
setToolContext
(Map<String, Object> context) Deprecated.void
Deprecated.void
Deprecated.
-
Constructor Details
-
DefaultFunctionCallingOptions
public DefaultFunctionCallingOptions()Deprecated.
-
-
Method Details
-
getFunctionCallbacks
Deprecated.Description copied from interface:FunctionCallingOptions
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.- Specified by:
getFunctionCallbacks
in interfaceFunctionCallingOptions
- Returns:
- Return the Function Callbacks to be registered with the ChatModel.
-
setFunctionCallbacks
Deprecated.Description copied from interface:FunctionCallingOptions
Set the Function Callbacks to be registered with the ChatModel.- Specified by:
setFunctionCallbacks
in interfaceFunctionCallingOptions
- Parameters:
functionCallbacks
- the Function Callbacks to be registered with the ChatModel.
-
getFunctions
Deprecated.- Specified by:
getFunctions
in interfaceFunctionCallingOptions
- Returns:
Set
of function names from the ChatModel registry to be used in the next chat completion requests.
-
setFunctions
Deprecated.Description copied from interface:FunctionCallingOptions
Set the list of function names from the ChatModel registry to be used in the next chat completion requests.- Specified by:
setFunctions
in interfaceFunctionCallingOptions
- Parameters:
functions
- the list of function names from the ChatModel registry to be used in the next chat completion requests.
-
getProxyToolCalls
Deprecated.- Specified by:
getProxyToolCalls
in interfaceFunctionCallingOptions
-
setProxyToolCalls
Deprecated.- Specified by:
setProxyToolCalls
in interfaceFunctionCallingOptions
-
getToolContext
Deprecated.- Specified by:
getToolContext
in interfaceFunctionCallingOptions
-
setToolContext
Deprecated.- Specified by:
setToolContext
in interfaceFunctionCallingOptions
-
getModel
Deprecated.Description copied from interface:ChatOptions
Returns the model to use for the chat.- Specified by:
getModel
in interfaceChatOptions
- Returns:
- the model to use for the chat
-
setModel
Deprecated. -
getFrequencyPenalty
Deprecated.Description copied from interface:ChatOptions
Returns the frequency penalty to use for the chat.- Specified by:
getFrequencyPenalty
in interfaceChatOptions
- Returns:
- the frequency penalty to use for the chat
-
setFrequencyPenalty
Deprecated. -
getMaxTokens
Deprecated.Description copied from interface:ChatOptions
Returns the maximum number of tokens to use for the chat.- Specified by:
getMaxTokens
in interfaceChatOptions
- Returns:
- the maximum number of tokens to use for the chat
-
setMaxTokens
Deprecated. -
getPresencePenalty
Deprecated.Description copied from interface:ChatOptions
Returns the presence penalty to use for the chat.- Specified by:
getPresencePenalty
in interfaceChatOptions
- Returns:
- the presence penalty to use for the chat
-
setPresencePenalty
Deprecated. -
getStopSequences
Deprecated.Description copied from interface:ChatOptions
Returns the stop sequences to use for the chat.- Specified by:
getStopSequences
in interfaceChatOptions
- Returns:
- the stop sequences to use for the chat
-
setStopSequences
Deprecated. -
getTemperature
Deprecated.Description copied from interface:ChatOptions
Returns the temperature to use for the chat.- Specified by:
getTemperature
in interfaceChatOptions
- Returns:
- the temperature to use for the chat
-
setTemperature
Deprecated. -
getTopK
Deprecated.Description copied from interface:ChatOptions
Returns the top K to use for the chat.- Specified by:
getTopK
in interfaceChatOptions
- Returns:
- the top K to use for the chat
-
setTopK
Deprecated. -
getTopP
Deprecated.Description copied from interface:ChatOptions
Returns the top P to use for the chat.- Specified by:
getTopP
in interfaceChatOptions
- Returns:
- the top P to use for the chat
-
setTopP
Deprecated. -
copy
Deprecated.Description copied from interface:ChatOptions
Returns a copy of thisChatOptions
.- Specified by:
copy
in interfaceChatOptions
- Returns:
- a copy of this
ChatOptions
-
merge
Deprecated.
-
DefaultToolCallingChatOptions
.