Class FunctionCallingOptionsBuilder
java.lang.Object
org.springframework.ai.model.function.FunctionCallingOptionsBuilder
@Deprecated(forRemoval=true,
since="1.0.0-M5")
public class FunctionCallingOptionsBuilder
extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
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
Deprecated, for removal: This API element is subject to removal in a future version.useDefaultFunctionCallingOptions
instead. -
Constructor Summary
ConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Deprecated, for removal: This API element is subject to removal in a future version.withFrequencyPenalty
(Double frequencyPenalty) Deprecated, for removal: This API element is subject to removal in a future version.withFunction
(String function) Deprecated, for removal: This API element is subject to removal in a future version.withFunctionCallbacks
(List<FunctionCallback> functionCallbacks) Deprecated, for removal: This API element is subject to removal in a future version.withFunctionCallbacks
(FunctionCallback... functionCallbacks) Deprecated, for removal: This API element is subject to removal in a future version.withFunctions
(Set<String> functions) Deprecated, for removal: This API element is subject to removal in a future version.withMaxTokens
(Integer maxTokens) 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.withPresencePenalty
(Double presencePenalty) Deprecated, for removal: This API element is subject to removal in a future version.withProxyToolCalls
(Boolean proxyToolCalls) Deprecated, for removal: This API element is subject to removal in a future version.withStopSequences
(List<String> stopSequences) Deprecated, for removal: This API element is subject to removal in a future version.withTemperature
(Double temperature) Deprecated, for removal: This API element is subject to removal in a future version.withToolContext
(String key, Object value) Deprecated, for removal: This API element is subject to removal in a future version.withToolContext
(Map<String, Object> context) 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.Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Details
-
FunctionCallingOptionsBuilder
public FunctionCallingOptionsBuilder()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
withFunctionCallbacks
public FunctionCallingOptionsBuilder withFunctionCallbacks(List<FunctionCallback> functionCallbacks) Deprecated, for removal: This API element is subject to removal in a future version. -
withFunctionCallbacks
Deprecated, for removal: This API element is subject to removal in a future version. -
withFunctions
Deprecated, for removal: This API element is subject to removal in a future version. -
withFunction
Deprecated, for removal: This API element is subject to removal in a future version. -
withModel
Deprecated, for removal: This API element is subject to removal in a future version. -
withFrequencyPenalty
Deprecated, for removal: This API element is subject to removal in a future version. -
withMaxTokens
Deprecated, for removal: This API element is subject to removal in a future version. -
withPresencePenalty
Deprecated, for removal: This API element is subject to removal in a future version. -
withStopSequences
Deprecated, for removal: This API element is subject to removal in a future version. -
withTemperature
Deprecated, for removal: This API element is subject to removal in a future version. -
withTopK
Deprecated, for removal: This API element is subject to removal in a future version. -
withTopP
Deprecated, for removal: This API element is subject to removal in a future version. -
withProxyToolCalls
Deprecated, for removal: This API element is subject to removal in a future version. -
withToolContext
Deprecated, for removal: This API element is subject to removal in a future version. -
withToolContext
Deprecated, for removal: This API element is subject to removal in a future version. -
build
Deprecated, for removal: This API element is subject to removal in a future version.
-
FunctionCallingOptions.Builder
instead.