Class BetaToolChoiceAuto
-
- All Implemented Interfaces:
public final class BetaToolChoiceAutoThe model will automatically decide whether to use tools.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaToolChoiceAuto.BuilderA builder for BetaToolChoiceAuto.
-
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 BetaToolChoiceAuto.BuildertoBuilder()final BetaToolChoiceAutovalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaToolChoiceAuto.Builderbuilder()Returns a mutable builder for constructing an instance of BetaToolChoiceAuto. -
-
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 BetaToolChoiceAuto.Builder toBuilder()
-
validate
final BetaToolChoiceAuto 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 BetaToolChoiceAuto.Builder builder()
Returns a mutable builder for constructing an instance of BetaToolChoiceAuto.
-
-
-
-