Package com.openai.models.beta.realtime
Class RealtimeResponseUsage.OutputTokenDetails
-
- All Implemented Interfaces:
public final class RealtimeResponseUsage.OutputTokenDetailsDetails about the output tokens used in the Response.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classRealtimeResponseUsage.OutputTokenDetails.BuilderA builder for OutputTokenDetails.
-
Method Summary
Modifier and Type Method Description final Optional<Long>audioTokens()The number of audio tokens used in the Response. final Optional<Long>textTokens()The number of text tokens used in the Response. final JsonField<Long>_audioTokens()Returns the raw JSON value of audioTokens. final JsonField<Long>_textTokens()Returns the raw JSON value of textTokens. final Map<String, JsonValue>_additionalProperties()final RealtimeResponseUsage.OutputTokenDetails.BuildertoBuilder()final RealtimeResponseUsage.OutputTokenDetailsvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static RealtimeResponseUsage.OutputTokenDetails.Builderbuilder()Returns a mutable builder for constructing an instance of OutputTokenDetails. -
-
Method Detail
-
audioTokens
final Optional<Long> audioTokens()
The number of audio tokens used in the Response.
-
textTokens
final Optional<Long> textTokens()
The number of text tokens used in the Response.
-
_audioTokens
final JsonField<Long> _audioTokens()
Returns the raw JSON value of audioTokens.
Unlike audioTokens, this method doesn't throw if the JSON field has an unexpected type.
-
_textTokens
final JsonField<Long> _textTokens()
Returns the raw JSON value of textTokens.
Unlike textTokens, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final RealtimeResponseUsage.OutputTokenDetails.Builder toBuilder()
-
validate
final RealtimeResponseUsage.OutputTokenDetails validate()
-
builder
final static RealtimeResponseUsage.OutputTokenDetails.Builder builder()
Returns a mutable builder for constructing an instance of OutputTokenDetails.
-
-
-
-