Package com.openai.models.responses
Class ResponseUsage.OutputTokensDetails
-
- All Implemented Interfaces:
public final class ResponseUsage.OutputTokensDetailsA detailed breakdown of the output tokens.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classResponseUsage.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 ResponseUsage.OutputTokensDetails.BuildertoBuilder()final ResponseUsage.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 ResponseUsage.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 ResponseUsage.OutputTokensDetails.Builder toBuilder()
-
validate
final ResponseUsage.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 ResponseUsage.OutputTokensDetails.Builder builder()
Returns a mutable builder for constructing an instance of OutputTokensDetails.
The following fields are required:
.reasoningTokens()
-
-
-
-