Package com.anthropic.models.messages
Class ToolChoiceTool
-
- All Implemented Interfaces:
public final class ToolChoiceToolThe model will use the specified tool with
tool_choice.name.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classToolChoiceTool.BuilderA builder for ToolChoiceTool.
-
Method Summary
Modifier and Type Method Description final Stringname()The name of the tool to use. final JsonValue_type()final Optional<Boolean>disableParallelToolUse()Whether to disable parallel tool use. final JsonField<String>_name()The name of the tool to use. final JsonField<Boolean>_disableParallelToolUse()Whether to disable parallel tool use. final Map<String, JsonValue>_additionalProperties()final ToolChoiceToolvalidate()final ToolChoiceTool.BuildertoBuilder()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ToolChoiceTool.Builderbuilder()Returns a mutable builder for constructing an instance of ToolChoiceTool. -
-
Method Detail
-
disableParallelToolUse
final Optional<Boolean> disableParallelToolUse()
Whether to disable parallel tool use.
Defaults to
false. If set totrue, the model will output exactly one tool use.
-
_disableParallelToolUse
final JsonField<Boolean> _disableParallelToolUse()
Whether to disable parallel tool use.
Defaults to
false. If set totrue, the model will output exactly one tool use.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
validate
final ToolChoiceTool validate()
-
toBuilder
final ToolChoiceTool.Builder toBuilder()
-
builder
final static ToolChoiceTool.Builder builder()
Returns a mutable builder for constructing an instance of ToolChoiceTool.
The following fields are required:
.name()
-
-
-
-