Package com.anthropic.models.messages
Class ToolChoiceAuto
-
- All Implemented Interfaces:
public final class ToolChoiceAutoThe model will automatically decide whether to use tools.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classToolChoiceAuto.BuilderA builder for ToolChoiceAuto.
-
Method Summary
Modifier and Type Method Description final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("auto")final Optional<Boolean>disableParallelToolUse()Whether to disable parallel tool use. final JsonField<Boolean>_disableParallelToolUse()Returns the raw JSON value of disableParallelToolUse. final Map<String, JsonValue>_additionalProperties()final ToolChoiceAuto.BuildertoBuilder()final ToolChoiceAutovalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ToolChoiceAuto.Builderbuilder()Returns a mutable builder for constructing an instance of ToolChoiceAuto. -
-
Method Detail
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("auto")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
disableParallelToolUse
final Optional<Boolean> disableParallelToolUse()
Whether to disable parallel tool use.
Defaults to
false. If set totrue, the model will output at most one tool use.
-
_disableParallelToolUse
final JsonField<Boolean> _disableParallelToolUse()
Returns the raw JSON value of disableParallelToolUse.
Unlike disableParallelToolUse, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ToolChoiceAuto.Builder toBuilder()
-
validate
final ToolChoiceAuto validate()
-
builder
final static ToolChoiceAuto.Builder builder()
Returns a mutable builder for constructing an instance of ToolChoiceAuto.
-
-
-
-