Class BetaThinkingDelta

    • Constructor Detail

    • 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-13 beta is set; null unless thinking.display resolves to "omitted" and a count is due this frame. Sum the increments across thinking_delta frames 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_tokens remains 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).

      • 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.