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.

      • thinking

         final String thinking()

        The incremental thinking text for this content block. Concatenate the thinking values of successive thinking_delta events to assemble the block's full thinking value.

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

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