Package com.openai.models.realtime
Class RealtimeResponseUsageOutputTokenDetails
-
- All Implemented Interfaces:
public final class RealtimeResponseUsageOutputTokenDetailsDetails about the output tokens used in the Response.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classRealtimeResponseUsageOutputTokenDetails.BuilderA builder for RealtimeResponseUsageOutputTokenDetails.
-
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 RealtimeResponseUsageOutputTokenDetails.BuildertoBuilder()final RealtimeResponseUsageOutputTokenDetailsvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static RealtimeResponseUsageOutputTokenDetails.Builderbuilder()Returns a mutable builder for constructing an instance of RealtimeResponseUsageOutputTokenDetails. -
-
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 RealtimeResponseUsageOutputTokenDetails.Builder toBuilder()
-
validate
final RealtimeResponseUsageOutputTokenDetails validate()
-
builder
final static RealtimeResponseUsageOutputTokenDetails.Builder builder()
Returns a mutable builder for constructing an instance of RealtimeResponseUsageOutputTokenDetails.
-
-
-
-