Class ThinkingConfigEnabled.Builder
-
- All Implemented Interfaces:
public final class ThinkingConfigEnabled.BuilderA builder for ThinkingConfigEnabled.
-
-
Method Summary
Modifier and Type Method Description final ThinkingConfigEnabled.BuilderbudgetTokens(Long budgetTokens)Determines how many tokens Claude can use for its internal reasoning process. final ThinkingConfigEnabled.BuilderbudgetTokens(JsonField<Long> budgetTokens)Sets Builder.budgetTokens to an arbitrary JSON value. final ThinkingConfigEnabled.Buildertype(JsonValue type)Sets the field to an arbitrary JSON value. final ThinkingConfigEnabled.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final ThinkingConfigEnabled.BuilderputAdditionalProperty(String key, JsonValue value)final ThinkingConfigEnabled.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final ThinkingConfigEnabled.BuilderremoveAdditionalProperty(String key)final ThinkingConfigEnabled.BuilderremoveAllAdditionalProperties(Set<String> keys)final ThinkingConfigEnabledbuild()Returns an immutable instance of ThinkingConfigEnabled. -
-
Method Detail
-
budgetTokens
final ThinkingConfigEnabled.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 ThinkingConfigEnabled.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 ThinkingConfigEnabled.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.
-
additionalProperties
final ThinkingConfigEnabled.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ThinkingConfigEnabled.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ThinkingConfigEnabled.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ThinkingConfigEnabled.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ThinkingConfigEnabled.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ThinkingConfigEnabled build()
Returns an immutable instance of ThinkingConfigEnabled.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.budgetTokens()
-
-
-
-