Class BetaThinkingConfigEnabled
-
- All Implemented Interfaces:
public final class BetaThinkingConfigEnabled
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaThinkingConfigEnabled.BuilderA builder for BetaThinkingConfigEnabled.
public final classBetaThinkingConfigEnabled.DisplayControls how thinking content appears in the response. When set to
summarized, thinking is returned normally. When set toomitted, thinking content is redacted but a signature is returned for multi-turn continuity. The default depends on the model; see Controlling thinking display.
-
Method Summary
Modifier and Type Method Description final LongbudgetTokens()Determines how many tokens Claude can use for its internal reasoning process. final Optional<BetaThinkingBlockBinding>blockBinding()Controls for block binding: what happens when a thinking block this request sends back fails the conversation check. final Optional<BetaThinkingConfigEnabled.Display>display()Controls how thinking content appears in the response. final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("enabled")final JsonField<Long>_budgetTokens()Returns the raw JSON value of budgetTokens. final JsonField<BetaThinkingBlockBinding>_blockBinding()Returns the raw JSON value of blockBinding. final JsonField<BetaThinkingConfigEnabled.Display>_display()Returns the raw JSON value of display. final Map<String, JsonValue>_additionalProperties()final BetaThinkingConfigEnabled.BuildertoBuilder()final BetaThinkingConfigEnabledvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaThinkingConfigEnabled.Builderbuilder()Returns a mutable builder for constructing an instance of BetaThinkingConfigEnabled. final static BetaThinkingConfigEnabledof(Long budgetTokens)Returns an immutable instance of BetaThinkingConfigEnabled with the required budgetTokens set to the given value. -
-
Method Detail
-
budgetTokens
final Long budgetTokens()
Determines how many tokens Claude can use for its internal reasoning process. Larger budgets can enable more thorough analysis for complex problems, improving response quality.
Must be ≥1024 and less than
max_tokens.See extended thinking for details.
-
blockBinding
final Optional<BetaThinkingBlockBinding> blockBinding()
Controls for block binding: what happens when a thinking block this request sends back fails the conversation check.
null, absent or an empty object means every default.
-
display
final Optional<BetaThinkingConfigEnabled.Display> display()
Controls how thinking content appears in the response. When set to
summarized, thinking is returned normally. When set toomitted, thinking content is redacted but a signature is returned for multi-turn continuity. The default depends on the model; see Controlling thinking display.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("enabled")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_budgetTokens
final JsonField<Long> _budgetTokens()
Returns the raw JSON value of budgetTokens.
Unlike budgetTokens, this method doesn't throw if the JSON field has an unexpected type.
-
_blockBinding
final JsonField<BetaThinkingBlockBinding> _blockBinding()
Returns the raw JSON value of blockBinding.
Unlike blockBinding, this method doesn't throw if the JSON field has an unexpected type.
-
_display
final JsonField<BetaThinkingConfigEnabled.Display> _display()
Returns the raw JSON value of display.
Unlike display, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaThinkingConfigEnabled.Builder toBuilder()
-
validate
final BetaThinkingConfigEnabled 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 BetaThinkingConfigEnabled.Builder builder()
Returns a mutable builder for constructing an instance of BetaThinkingConfigEnabled.
The following fields are required:
.budgetTokens()
-
of
final static BetaThinkingConfigEnabled of(Long budgetTokens)
Returns an immutable instance of BetaThinkingConfigEnabled with the required budgetTokens set to the given value.
-
-
-
-