Class ZhiPuAiApi.ChatCompletionRequest.ToolChoiceBuilder
java.lang.Object
org.springframework.ai.zhipuai.api.ZhiPuAiApi.ChatCompletionRequest.ToolChoiceBuilder
- Enclosing class:
- ZhiPuAiApi.ChatCompletionRequest
Helper factory that creates a tool_choice of type 'none', 'auto' or selected function by name.
-
Field Summary
-
Constructor Summary
-
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.
-