Class BetaThinkingConfigEnabled.Builder
-
- All Implemented Interfaces:
public final class BetaThinkingConfigEnabled.BuilderA builder for BetaThinkingConfigEnabled.
-
-
Method Summary
-
-
Method Detail
-
budgetTokens
final BetaThinkingConfigEnabled.Builder budgetTokens(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.
-
budgetTokens
final BetaThinkingConfigEnabled.Builder budgetTokens(JsonField<Long> budgetTokens)
Sets Builder.budgetTokens to an arbitrary JSON value.
You should usually call Builder.budgetTokens with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaThinkingConfigEnabled.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("enabled")This method is primarily for setting the field to an undocumented or not yet supported value.
-
blockBinding
final BetaThinkingConfigEnabled.Builder blockBinding(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.
-
blockBinding
final BetaThinkingConfigEnabled.Builder blockBinding(Optional<BetaThinkingBlockBinding> blockBinding)
Alias for calling Builder.blockBinding with
blockBinding.orElse(null).
-
blockBinding
final BetaThinkingConfigEnabled.Builder blockBinding(JsonField<BetaThinkingBlockBinding> blockBinding)
Sets Builder.blockBinding to an arbitrary JSON value.
You should usually call Builder.blockBinding with a well-typed BetaThinkingBlockBinding value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
display
final BetaThinkingConfigEnabled.Builder display(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.
-
display
final BetaThinkingConfigEnabled.Builder display(Optional<BetaThinkingConfigEnabled.Display> display)
Alias for calling Builder.display with
display.orElse(null).
-
display
final BetaThinkingConfigEnabled.Builder display(JsonField<BetaThinkingConfigEnabled.Display> display)
Sets Builder.display to an arbitrary JSON value.
You should usually call Builder.display with a well-typed Display value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaThinkingConfigEnabled.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaThinkingConfigEnabled.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaThinkingConfigEnabled.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaThinkingConfigEnabled.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaThinkingConfigEnabled.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaThinkingConfigEnabled build()
Returns an immutable instance of BetaThinkingConfigEnabled.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.budgetTokens()
-
-
-
-