Class OutputTokensDetails
-
- All Implemented Interfaces:
public final class OutputTokensDetails
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classOutputTokensDetails.BuilderA builder for OutputTokensDetails.
-
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 OutputTokensDetails.BuildertoBuilder()final OutputTokensDetailsvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static OutputTokensDetails.Builderbuilder()Returns a mutable builder for constructing an instance of OutputTokensDetails. -
-
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 OutputTokensDetails.Builder toBuilder()
-
validate
final OutputTokensDetails 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 OutputTokensDetails.Builder builder()
Returns a mutable builder for constructing an instance of OutputTokensDetails.
The following fields are required:
.thinkingTokens()
-
-
-
-