Class FunctionCallingOptionsBuilder
java.lang.Object
org.springframework.ai.model.function.FunctionCallingOptionsBuilder
Builder for
FunctionCallingOptions
. Using the FunctionCallingOptions
permits options portability between different AI providers that support
function-calling.- Since:
- 0.8.1
- Author:
- Christian Tzolov, Thomas Vitale
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
withFrequencyPenalty
(Double frequencyPenalty) withFunction
(String function) withFunctionCallbacks
(List<FunctionCallback> functionCallbacks) withFunctionCallbacks
(FunctionCallback... functionCallbacks) withFunctions
(Set<String> functions) withMaxTokens
(Integer maxTokens) withPresencePenalty
(Double presencePenalty) withProxyToolCalls
(Boolean proxyToolCalls) withStopSequences
(List<String> stopSequences) withTemperature
(Double temperature) withToolContext
(String key, Object value) withToolContext
(Map<String, Object> context)
-
Constructor Details
-
FunctionCallingOptionsBuilder
public FunctionCallingOptionsBuilder()
-
-
Method Details
-
withFunctionCallbacks
public FunctionCallingOptionsBuilder withFunctionCallbacks(List<FunctionCallback> functionCallbacks) -
withFunctionCallbacks
-
withFunctions
-
withFunction
-
withModel
-
withFrequencyPenalty
-
withMaxTokens
-
withPresencePenalty
-
withStopSequences
-
withTemperature
-
withTopK
-
withTopP
-
withProxyToolCalls
-
withToolContext
-
withToolContext
-
build
-