Class ThinkingTypes
-
- All Implemented Interfaces:
public final class ThinkingTypesWhich
thinking.typevalues the model accepts on requests. Read each key on its own: for example,enabledcan be false whiledisabledis true.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classThinkingTypes.BuilderA builder for ThinkingTypes.
-
Method Summary
Modifier and Type Method Description final CapabilitySupportadaptive()Whether the model accepts thinking with type 'adaptive' (the model decides whether and how much to think). final CapabilitySupportbetweenTools()Whether the model accepts thinking with type 'between_tools' (thinking turned off, and any short progress updates the model writes between tool calls come back as thinking blocks). final CapabilitySupportdisabled()Whether the model accepts thinking with type 'disabled' (thinking turned off). final CapabilitySupportenabled()Whether the model accepts thinking with type 'enabled' (extended thinking with a caller-set budget_tokens).final JsonField<CapabilitySupport>_adaptive()Returns the raw JSON value of adaptive. final JsonField<CapabilitySupport>_betweenTools()Returns the raw JSON value of betweenTools. final JsonField<CapabilitySupport>_disabled()Returns the raw JSON value of disabled. final JsonField<CapabilitySupport>_enabled()Returns the raw JSON value of enabled. final Map<String, JsonValue>_additionalProperties()final ThinkingTypes.BuildertoBuilder()final ThinkingTypesvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ThinkingTypes.Builderbuilder()Returns a mutable builder for constructing an instance of ThinkingTypes. -
-
Method Detail
-
adaptive
final CapabilitySupport adaptive()
Whether the model accepts thinking with type 'adaptive' (the model decides whether and how much to think).
-
betweenTools
final CapabilitySupport betweenTools()
Whether the model accepts thinking with type 'between_tools' (thinking turned off, and any short progress updates the model writes between tool calls come back as thinking blocks). False exactly when a request that sends it gets a 400 from this model. A request that sends 'between_tools' can still be rejected for another reason, such as an effort level the model does not allow with thinking off.
-
disabled
final CapabilitySupport disabled()
Whether the model accepts thinking with type 'disabled' (thinking turned off). False exactly when a request that sends it gets a 400 from this model. True on a model that does not support thinking. A request that sends 'disabled' can still be rejected for another reason, such as an effort level the model does not allow with thinking off.
-
enabled
final CapabilitySupport enabled()
Whether the model accepts thinking with type 'enabled' (extended thinking with a caller-set
budget_tokens).
-
_adaptive
final JsonField<CapabilitySupport> _adaptive()
Returns the raw JSON value of adaptive.
Unlike adaptive, this method doesn't throw if the JSON field has an unexpected type.
-
_betweenTools
final JsonField<CapabilitySupport> _betweenTools()
Returns the raw JSON value of betweenTools.
Unlike betweenTools, this method doesn't throw if the JSON field has an unexpected type.
-
_disabled
final JsonField<CapabilitySupport> _disabled()
Returns the raw JSON value of disabled.
Unlike disabled, this method doesn't throw if the JSON field has an unexpected type.
-
_enabled
final JsonField<CapabilitySupport> _enabled()
Returns the raw JSON value of enabled.
Unlike enabled, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ThinkingTypes.Builder toBuilder()
-
validate
final ThinkingTypes 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 ThinkingTypes.Builder builder()
Returns a mutable builder for constructing an instance of ThinkingTypes.
The following fields are required:
.adaptive() .betweenTools() .disabled() .enabled()
-
-
-
-