Class BetaThinkingDelta
-
- All Implemented Interfaces:
public final class BetaThinkingDelta
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaThinkingDelta.BuilderA builder for BetaThinkingDelta.
-
Method Summary
Modifier and Type Method Description final Optional<Long>estimatedTokens()Per-frame increment of a coarse, running estimate of the tokens this thinking block has produced so far. final Stringthinking()final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("thinking_delta")final JsonField<Long>_estimatedTokens()Returns the raw JSON value of estimatedTokens. final JsonField<String>_thinking()Returns the raw JSON value of thinking. final Map<String, JsonValue>_additionalProperties()final BetaThinkingDelta.BuildertoBuilder()final BetaThinkingDeltavalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaThinkingDelta.Builderbuilder()Returns a mutable builder for constructing an instance of BetaThinkingDelta. -
-
Method Detail
-
estimatedTokens
final Optional<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.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("thinking_delta")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_estimatedTokens
final JsonField<Long> _estimatedTokens()
Returns the raw JSON value of estimatedTokens.
Unlike estimatedTokens, this method doesn't throw if the JSON field has an unexpected type.
-
_thinking
final JsonField<String> _thinking()
Returns the raw JSON value of thinking.
Unlike thinking, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaThinkingDelta.Builder toBuilder()
-
validate
final BetaThinkingDelta 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 BetaThinkingDelta.Builder builder()
Returns a mutable builder for constructing an instance of BetaThinkingDelta.
The following fields are required:
.estimatedTokens() .thinking()
-
-
-
-