Class FunctionCallingOptionsBuilder.PortableFunctionCallingOptions
java.lang.Object
org.springframework.ai.model.function.FunctionCallingOptionsBuilder.PortableFunctionCallingOptions
- All Implemented Interfaces:
ChatOptions
,FunctionCallingOptions
,ModelOptions
- Enclosing class:
- FunctionCallingOptionsBuilder
@Deprecated(forRemoval=true,
since="1.0.0-M5")
public static class FunctionCallingOptionsBuilder.PortableFunctionCallingOptions
extends Object
implements FunctionCallingOptions
Deprecated, for removal: This API element is subject to removal in a future version.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.ai.model.function.FunctionCallingOptions
FunctionCallingOptions.Builder
-
Constructor Summary
ConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Deprecated, for removal: This API element is subject to removal in a future version.Creates a newChatOptions.Builder
to create the defaultChatOptions
.copy()
Deprecated, for removal: This API element is subject to removal in a future version.Returns a copy of thisChatOptions
.Deprecated, for removal: This API element is subject to removal in a future version.Returns the frequency penalty to use for the chat.Deprecated, for removal: This API element is subject to removal in a future version.Function Callbacks to be registered with the ChatModel.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Returns the maximum number of tokens to use for the chat.getModel()
Deprecated, for removal: This API element is subject to removal in a future version.Returns the model to use for the chat.Deprecated, for removal: This API element is subject to removal in a future version.Returns the presence penalty to use for the chat.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Returns the stop sequences to use for the chat.Deprecated, for removal: This API element is subject to removal in a future version.Returns the temperature to use for the chat.Deprecated, for removal: This API element is subject to removal in a future version.getTopK()
Deprecated, for removal: This API element is subject to removal in a future version.Returns the top K to use for the chat.getTopP()
Deprecated, for removal: This API element is subject to removal in a future version.Returns the top P to use for the chat.merge
(ChatOptions options) Deprecated, for removal: This API element is subject to removal in a future version.merge
(FunctionCallingOptions options) Deprecated, for removal: This API element is subject to removal in a future version.void
setFrequencyPenalty
(Double frequencyPenalty) Deprecated, for removal: This API element is subject to removal in a future version.void
setFunctionCallbacks
(List<FunctionCallback> functionCallbacks) Deprecated, for removal: This API element is subject to removal in a future version.Set the Function Callbacks to be registered with the ChatModel.void
setFunctions
(Set<String> functions) Deprecated, for removal: This API element is subject to removal in a future version.Set the list of function names from the ChatModel registry to be used in the next chat completion requests.void
setMaxTokens
(Integer maxTokens) Deprecated, for removal: This API element is subject to removal in a future version.void
Deprecated, for removal: This API element is subject to removal in a future version.void
setPresencePenalty
(Double presencePenalty) Deprecated, for removal: This API element is subject to removal in a future version.void
setProxyToolCalls
(Boolean proxyToolCalls) Deprecated, for removal: This API element is subject to removal in a future version.void
setStopSequences
(List<String> stopSequences) Deprecated, for removal: This API element is subject to removal in a future version.void
setTemperature
(Double temperature) Deprecated, for removal: This API element is subject to removal in a future version.void
setToolContext
(Map<String, Object> context) Deprecated, for removal: This API element is subject to removal in a future version.void
Deprecated, for removal: This API element is subject to removal in a future version.void
Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Details
-
PortableFunctionCallingOptions
public PortableFunctionCallingOptions()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
builder
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ChatOptions
Creates a newChatOptions.Builder
to create the defaultChatOptions
.- Returns:
- Returns
DefaultFunctionCallingOptionsBuilder
to create a new instance ofFunctionCallingOptions
.
-
getFunctionCallbacks
Deprecated, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.- 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, for removal: This API element is subject to removal in a future version.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.
-
getModel
Deprecated, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version. -
getFrequencyPenalty
Deprecated, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version. -
getMaxTokens
Deprecated, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version. -
getPresencePenalty
Deprecated, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version. -
getStopSequences
Deprecated, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version. -
getTemperature
Deprecated, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version. -
getTopK
Deprecated, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version. -
getTopP
Deprecated, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version. -
getProxyToolCalls
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getProxyToolCalls
in interfaceFunctionCallingOptions
-
setProxyToolCalls
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
setProxyToolCalls
in interfaceFunctionCallingOptions
-
getToolContext
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getToolContext
in interfaceFunctionCallingOptions
-
setToolContext
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
setToolContext
in interfaceFunctionCallingOptions
-
copy
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ChatOptions
Returns a copy of thisChatOptions
.- Specified by:
copy
in interfaceChatOptions
- Returns:
- a copy of this
ChatOptions
-
merge
public FunctionCallingOptionsBuilder.PortableFunctionCallingOptions merge(FunctionCallingOptions options) Deprecated, for removal: This API element is subject to removal in a future version. -
merge
Deprecated, for removal: This API element is subject to removal in a future version.
-
DefaultFunctionCallingOptions
instead.