Class BetaOutputTokensDetails
-
- All Implemented Interfaces:
public final class BetaOutputTokensDetails
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaOutputTokensDetails.BuilderA builder for BetaOutputTokensDetails.
-
Method Summary
Modifier and Type Method Description final LongthinkingTokens()Number of output tokens the model generated as internal reasoning, including the thinking-block delimiter tokens. final JsonField<Long>_thinkingTokens()Returns the raw JSON value of thinkingTokens. final Map<String, JsonValue>_additionalProperties()final BetaOutputTokensDetails.BuildertoBuilder()final BetaOutputTokensDetailsvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaOutputTokensDetails.Builderbuilder()Returns a mutable builder for constructing an instance of BetaOutputTokensDetails. -
-
Method Detail
-
thinkingTokens
final Long thinkingTokens()
Number of output tokens the model generated as internal reasoning, including the thinking-block delimiter tokens.
Reflects the raw reasoning the model produced, not the (possibly shorter) summarized thinking text returned in the response body. Computed by re-tokenizing the raw reasoning text, so it may differ from the model's exact generation count by a small number of tokens. Always ≤
output_tokens;output_tokens - thinking_tokensapproximates the non-reasoning output.
-
_thinkingTokens
final JsonField<Long> _thinkingTokens()
Returns the raw JSON value of thinkingTokens.
Unlike thinkingTokens, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaOutputTokensDetails.Builder toBuilder()
-
validate
final BetaOutputTokensDetails 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 BetaOutputTokensDetails.Builder builder()
Returns a mutable builder for constructing an instance of BetaOutputTokensDetails.
The following fields are required:
.thinkingTokens()
-
-
-
-