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
Constructors -
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.Setof 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 aMapof 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.BuilderThe list of Function Callbacks to be registered with the Chat model.- Specified by:
functionCallbacksin interfaceFunctionCallingOptions.Builder- Parameters:
functionCallbacks- the list of Function Callbacks.- Returns:
- the FunctionCallOptions Builder.
-
functionCallbacks
Deprecated.Description copied from interface:FunctionCallingOptions.BuilderThe Function Callbacks to be registered with the Chat model.- Specified by:
functionCallbacksin interfaceFunctionCallingOptions.Builder- Parameters:
functionCallbacks- the function callbacks.- Returns:
- the FunctionCallOptions Builder.
-
functions
Deprecated.Description copied from interface:FunctionCallingOptions.BuilderSetof function names to be registered with the Chat model.- Specified by:
functionsin interfaceFunctionCallingOptions.Builder- Parameters:
functions- theSetof function names- Returns:
- the FunctionCallOptions Builder.
-
function
Deprecated.Description copied from interface:FunctionCallingOptions.BuilderThe function name to be registered with the chat model.- Specified by:
functionin interfaceFunctionCallingOptions.Builder- Parameters:
function- the name of the function.- Returns:
- the FunctionCallOptions Builder.
-
proxyToolCalls
Deprecated.Description copied from interface:FunctionCallingOptions.BuilderBoolean flag to indicate if the proxy ToolCalls is enabled.- Specified by:
proxyToolCallsin interfaceFunctionCallingOptions.Builder- Parameters:
proxyToolCalls- boolean value to enable proxy ToolCalls.- Returns:
- the FunctionCallOptions Builder.
-
toolContext
Deprecated.Description copied from interface:FunctionCallingOptions.BuilderAdd aMapof context values into tool context.- Specified by:
toolContextin interfaceFunctionCallingOptions.Builder- Parameters:
context- the map representing the tool context.- Returns:
- the FunctionCallOptions Builder.
-
toolContext
Deprecated.Description copied from interface:FunctionCallingOptions.BuilderAdd a specific key/value pair to the tool context.- Specified by:
toolContextin interfaceFunctionCallingOptions.Builder- Parameters:
key- the key to use.value- the corresponding value.- Returns:
- the FunctionCallOptions Builder.
-
model
Deprecated.Description copied from interface:ChatOptions.BuilderBuilds with the model to use for the chat.- Specified by:
modelin interfaceChatOptions.Builder- Specified by:
modelin interfaceFunctionCallingOptions.Builder- Returns:
- the builder
-
frequencyPenalty
Deprecated.Description copied from interface:ChatOptions.BuilderBuilds with the frequency penalty to use for the chat.- Specified by:
frequencyPenaltyin interfaceChatOptions.Builder- Specified by:
frequencyPenaltyin interfaceFunctionCallingOptions.Builder- Returns:
- the builder.
-
maxTokens
Deprecated.Description copied from interface:ChatOptions.BuilderBuilds with the maximum number of tokens to use for the chat.- Specified by:
maxTokensin interfaceChatOptions.Builder- Specified by:
maxTokensin interfaceFunctionCallingOptions.Builder- Returns:
- the builder.
-
presencePenalty
Deprecated.Description copied from interface:ChatOptions.BuilderBuilds with the presence penalty to use for the chat.- Specified by:
presencePenaltyin interfaceChatOptions.Builder- Specified by:
presencePenaltyin interfaceFunctionCallingOptions.Builder- Returns:
- the builder.
-
stopSequences
Deprecated.Description copied from interface:ChatOptions.BuilderBuilds with the stop sequences to use for the chat.- Specified by:
stopSequencesin interfaceChatOptions.Builder- Specified by:
stopSequencesin interfaceFunctionCallingOptions.Builder- Returns:
- the builder.
-
temperature
Deprecated.Description copied from interface:ChatOptions.BuilderBuilds with the temperature to use for the chat.- Specified by:
temperaturein interfaceChatOptions.Builder- Specified by:
temperaturein interfaceFunctionCallingOptions.Builder- Returns:
- the builder.
-
topK
Deprecated.Description copied from interface:ChatOptions.BuilderBuilds with the top K to use for the chat.- Specified by:
topKin interfaceChatOptions.Builder- Specified by:
topKin interfaceFunctionCallingOptions.Builder- Returns:
- the builder.
-
topP
Deprecated.Description copied from interface:ChatOptions.BuilderBuilds with the top P to use for the chat.- Specified by:
topPin interfaceChatOptions.Builder- Specified by:
topPin interfaceFunctionCallingOptions.Builder- Returns:
- the builder.
-
build
Deprecated.Description copied from interface:FunctionCallingOptions.BuilderBuilds theFunctionCallingOptions.- Specified by:
buildin interfaceChatOptions.Builder- Specified by:
buildin interfaceFunctionCallingOptions.Builder- Returns:
- the FunctionCalling options.
-
DefaultToolCallingChatOptions.Builder.