Class MoonshotApi.ChatCompletionRequest.ToolChoiceBuilder
java.lang.Object
org.springframework.ai.moonshot.api.MoonshotApi.ChatCompletionRequest.ToolChoiceBuilder
- Enclosing class:
- MoonshotApi.ChatCompletionRequest
Helper factory that creates a tool_choice of type 'none', 'auto' or selected
function by name.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
AUTO
Model can pick between generating a message or calling a function.- See Also:
-
NONE
Model will not call a function and instead generates a message- See Also:
-
-
Constructor Details
-
ToolChoiceBuilder
public ToolChoiceBuilder()
-
-
Method Details
-
function
Specifying a particular function forces the model to call that function.
-