Class DefaultFunctionCallingOptionsBuilder
java.lang.Object
org.springframework.ai.model.function.DefaultFunctionCallingOptionsBuilder
- All Implemented Interfaces:
ChatOptions.Builder
,FunctionCallingOptions.Builder
@Deprecated
public class DefaultFunctionCallingOptionsBuilder
extends Object
implements FunctionCallingOptions.Builder
Deprecated.
Default implementation of
FunctionCallingOptions.Builder
.- Author:
- Christian Tzolov, Thomas Vitale, Ilayaperumal Gopinathan
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Deprecated.Builds theFunctionCallingOptions
.frequencyPenalty
(Double frequencyPenalty) Deprecated.Builds with the frequency penalty to use for the chat.Deprecated.The function name to be registered with the chat model.functionCallbacks
(List<FunctionCallback> functionCallbacks) Deprecated.The list of Function Callbacks to be registered with the Chat model.functionCallbacks
(FunctionCallback... functionCallbacks) Deprecated.The Function Callbacks to be registered with the Chat model.Deprecated.Set
of function names to be registered with the Chat model.Deprecated.Builds with the maximum number of tokens to use for the chat.Deprecated.Builds with the model to use for the chat.presencePenalty
(Double presencePenalty) Deprecated.Builds with the presence penalty to use for the chat.proxyToolCalls
(Boolean proxyToolCalls) Deprecated.Boolean flag to indicate if the proxy ToolCalls is enabled.stopSequences
(List<String> stop) Deprecated.Builds with the stop sequences to use for the chat.temperature
(Double temperature) Deprecated.Builds with the temperature to use for the chat.toolContext
(String key, Object value) Deprecated.Add a specific key/value pair to the tool context.toolContext
(Map<String, Object> context) Deprecated.Add aMap
of context values into tool context.Deprecated.Builds with the top K to use for the chat.Deprecated.Builds with the top P to use for the chat.
-
Constructor Details
-
DefaultFunctionCallingOptionsBuilder
public DefaultFunctionCallingOptionsBuilder()Deprecated.
-
-
Method Details
-
functionCallbacks
Deprecated.Description copied from interface:FunctionCallingOptions.Builder
The list of Function Callbacks to be registered with the Chat model.- Specified by:
functionCallbacks
in interfaceFunctionCallingOptions.Builder
- Parameters:
functionCallbacks
- the list of Function Callbacks.- Returns:
- the FunctionCallOptions Builder.
-
functionCallbacks
Deprecated.Description copied from interface:FunctionCallingOptions.Builder
The Function Callbacks to be registered with the Chat model.- Specified by:
functionCallbacks
in interfaceFunctionCallingOptions.Builder
- Parameters:
functionCallbacks
- the function callbacks.- Returns:
- the FunctionCallOptions Builder.
-
functions
Deprecated.Description copied from interface:FunctionCallingOptions.Builder
Set
of function names to be registered with the Chat model.- Specified by:
functions
in interfaceFunctionCallingOptions.Builder
- Parameters:
functions
- theSet
of function names- Returns:
- the FunctionCallOptions Builder.
-
function
Deprecated.Description copied from interface:FunctionCallingOptions.Builder
The function name to be registered with the chat model.- Specified by:
function
in interfaceFunctionCallingOptions.Builder
- Parameters:
function
- the name of the function.- Returns:
- the FunctionCallOptions Builder.
-
proxyToolCalls
Deprecated.Description copied from interface:FunctionCallingOptions.Builder
Boolean flag to indicate if the proxy ToolCalls is enabled.- Specified by:
proxyToolCalls
in interfaceFunctionCallingOptions.Builder
- Parameters:
proxyToolCalls
- boolean value to enable proxy ToolCalls.- Returns:
- the FunctionCallOptions Builder.
-
toolContext
Deprecated.Description copied from interface:FunctionCallingOptions.Builder
Add aMap
of context values into tool context.- Specified by:
toolContext
in interfaceFunctionCallingOptions.Builder
- Parameters:
context
- the map representing the tool context.- Returns:
- the FunctionCallOptions Builder.
-
toolContext
Deprecated.Description copied from interface:FunctionCallingOptions.Builder
Add a specific key/value pair to the tool context.- Specified by:
toolContext
in interfaceFunctionCallingOptions.Builder
- Parameters:
key
- the key to use.value
- the corresponding value.- Returns:
- the FunctionCallOptions Builder.
-
model
Deprecated.Description copied from interface:ChatOptions.Builder
Builds with the model to use for the chat.- Specified by:
model
in interfaceChatOptions.Builder
- Specified by:
model
in interfaceFunctionCallingOptions.Builder
- Returns:
- the builder
-
frequencyPenalty
Deprecated.Description copied from interface:ChatOptions.Builder
Builds with the frequency penalty to use for the chat.- Specified by:
frequencyPenalty
in interfaceChatOptions.Builder
- Specified by:
frequencyPenalty
in interfaceFunctionCallingOptions.Builder
- Returns:
- the builder.
-
maxTokens
Deprecated.Description copied from interface:ChatOptions.Builder
Builds with the maximum number of tokens to use for the chat.- Specified by:
maxTokens
in interfaceChatOptions.Builder
- Specified by:
maxTokens
in interfaceFunctionCallingOptions.Builder
- Returns:
- the builder.
-
presencePenalty
Deprecated.Description copied from interface:ChatOptions.Builder
Builds with the presence penalty to use for the chat.- Specified by:
presencePenalty
in interfaceChatOptions.Builder
- Specified by:
presencePenalty
in interfaceFunctionCallingOptions.Builder
- Returns:
- the builder.
-
stopSequences
Deprecated.Description copied from interface:ChatOptions.Builder
Builds with the stop sequences to use for the chat.- Specified by:
stopSequences
in interfaceChatOptions.Builder
- Specified by:
stopSequences
in interfaceFunctionCallingOptions.Builder
- Returns:
- the builder.
-
temperature
Deprecated.Description copied from interface:ChatOptions.Builder
Builds with the temperature to use for the chat.- Specified by:
temperature
in interfaceChatOptions.Builder
- Specified by:
temperature
in interfaceFunctionCallingOptions.Builder
- Returns:
- the builder.
-
topK
Deprecated.Description copied from interface:ChatOptions.Builder
Builds with the top K to use for the chat.- Specified by:
topK
in interfaceChatOptions.Builder
- Specified by:
topK
in interfaceFunctionCallingOptions.Builder
- Returns:
- the builder.
-
topP
Deprecated.Description copied from interface:ChatOptions.Builder
Builds with the top P to use for the chat.- Specified by:
topP
in interfaceChatOptions.Builder
- Specified by:
topP
in interfaceFunctionCallingOptions.Builder
- Returns:
- the builder.
-
build
Deprecated.Description copied from interface:FunctionCallingOptions.Builder
Builds theFunctionCallingOptions
.- Specified by:
build
in interfaceChatOptions.Builder
- Specified by:
build
in interfaceFunctionCallingOptions.Builder
- Returns:
- the FunctionCalling options.
-
DefaultToolCallingChatOptions.Builder
.