Class BetaThinkingDelta.Builder
-
- All Implemented Interfaces:
public final class BetaThinkingDelta.BuilderA builder for BetaThinkingDelta.
-
-
Method Summary
-
-
Method Detail
-
estimatedTokens
final BetaThinkingDelta.Builder estimatedTokens(Long estimatedTokens)
Per-frame increment of a coarse, running estimate of the tokens this thinking block has produced so far. Present whenever the
thinking-token-count-2026-05-13beta is set;nullunlessthinking.displayresolves to"omitted"and a count is due this frame. Sum the increments acrossthinking_deltaframes on this block for a progress indicator. Each increment is a non-negative multiple of a fixed quantum and the cadence is rate-limited, so this is a deliberately lossy display hint, not a billable count;usage.output_tokensremains authoritative.
-
estimatedTokens
final BetaThinkingDelta.Builder estimatedTokens(Long estimatedTokens)
Alias for Builder.estimatedTokens.
This unboxed primitive overload exists for backwards compatibility.
-
estimatedTokens
final BetaThinkingDelta.Builder estimatedTokens(Optional<Long> estimatedTokens)
Alias for calling Builder.estimatedTokens with
estimatedTokens.orElse(null).
-
estimatedTokens
final BetaThinkingDelta.Builder estimatedTokens(JsonField<Long> estimatedTokens)
Sets Builder.estimatedTokens to an arbitrary JSON value.
You should usually call Builder.estimatedTokens with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
thinking
final BetaThinkingDelta.Builder thinking(String thinking)
-
thinking
final BetaThinkingDelta.Builder thinking(JsonField<String> thinking)
Sets Builder.thinking to an arbitrary JSON value.
You should usually call Builder.thinking with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaThinkingDelta.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("thinking_delta")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaThinkingDelta.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaThinkingDelta.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaThinkingDelta.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaThinkingDelta.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaThinkingDelta.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaThinkingDelta build()
Returns an immutable instance of BetaThinkingDelta.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.estimatedTokens() .thinking()
-
-
-
-