Package com.openai.models.beta.responses
Class BetaResponseUsage.OutputTokensDetails
-
- All Implemented Interfaces:
public final class BetaResponseUsage.OutputTokensDetailsA detailed breakdown of the output tokens.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaResponseUsage.OutputTokensDetails.BuilderA builder for OutputTokensDetails.
-
Method Summary
Modifier and Type Method Description final LongreasoningTokens()The number of reasoning tokens. final JsonField<Long>_reasoningTokens()Returns the raw JSON value of reasoningTokens. final Map<String, JsonValue>_additionalProperties()final BetaResponseUsage.OutputTokensDetails.BuildertoBuilder()final BetaResponseUsage.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 BetaResponseUsage.OutputTokensDetails.Builderbuilder()Returns a mutable builder for constructing an instance of OutputTokensDetails. -
-
Method Detail
-
reasoningTokens
final Long reasoningTokens()
The number of reasoning tokens.
-
_reasoningTokens
final JsonField<Long> _reasoningTokens()
Returns the raw JSON value of reasoningTokens.
Unlike reasoningTokens, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaResponseUsage.OutputTokensDetails.Builder toBuilder()
-
validate
final BetaResponseUsage.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 BetaResponseUsage.OutputTokensDetails.Builder builder()
Returns a mutable builder for constructing an instance of OutputTokensDetails.
The following fields are required:
.reasoningTokens()
-
-
-
-