Interface ToolChoice
- All Known Implementing Classes:
ToolChoice.Auto, ToolChoice.Named, ToolChoice.None, ToolChoice.Required
public sealed interface ToolChoice
permits ToolChoice.Auto, ToolChoice.None, ToolChoice.Required, ToolChoice.Named
OpenAI
tool_choice semantics.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordModel may call tools or answer normally.static final recordForce a specific function by name.static final recordDo not inject tools; disable tool-call parsing.static final recordModel should call at least one tool. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ToolChoiceShared singleton forToolChoice.Auto.static final ToolChoiceShared singleton forToolChoice.None.static final ToolChoiceShared singleton forToolChoice.Required.
-
Field Details
-
AUTO
Shared singleton forToolChoice.Auto. -
NONE
Shared singleton forToolChoice.None. -
REQUIRED
Shared singleton forToolChoice.Required.
-