Package com.anthropic.models.messages
Class ToolChoiceAny
-
- All Implemented Interfaces:
public final class ToolChoiceAnyThe model will use any available tools.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classToolChoiceAny.BuilderA builder for ToolChoiceAny.
-
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("any")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 ToolChoiceAny.BuildertoBuilder()final ToolChoiceAnyvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ToolChoiceAny.Builderbuilder()Returns a mutable builder for constructing an instance of ToolChoiceAny. -
-
Method Detail
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("any")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 exactly 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 ToolChoiceAny.Builder toBuilder()
-
validate
final ToolChoiceAny validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static ToolChoiceAny.Builder builder()
Returns a mutable builder for constructing an instance of ToolChoiceAny.
-
-
-
-