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
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
withFunction
(String function) withFunctionCallback
(FunctionCallback functionCallback) withFunctionCallbacks
(List<FunctionCallback> functionCallbacks) withFunctions
(Set<String> functions) withTemperature
(Float temperature)
-
Constructor Details
-
FunctionCallingOptionsBuilder
public FunctionCallingOptionsBuilder()
-
-
Method Details
-
withFunctionCallbacks
public FunctionCallingOptionsBuilder withFunctionCallbacks(List<FunctionCallback> functionCallbacks) -
withFunctionCallback
-
withFunctions
-
withFunction
-
withTemperature
-
withTopP
-
withTopK
-
build
-