Package com.openai.models.realtime
Class RealtimeResponseUsageInputTokenDetails
-
- All Implemented Interfaces:
public final class RealtimeResponseUsageInputTokenDetailsDetails about the input tokens used in the Response.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classRealtimeResponseUsageInputTokenDetails.BuilderA builder for RealtimeResponseUsageInputTokenDetails.
-
Method Summary
Modifier and Type Method Description final Optional<Long>audioTokens()The number of audio tokens used in the Response. final Optional<Long>cachedTokens()The number of cached 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>_cachedTokens()Returns the raw JSON value of cachedTokens. final JsonField<Long>_textTokens()Returns the raw JSON value of textTokens. final Map<String, JsonValue>_additionalProperties()final RealtimeResponseUsageInputTokenDetails.BuildertoBuilder()final RealtimeResponseUsageInputTokenDetailsvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static RealtimeResponseUsageInputTokenDetails.Builderbuilder()Returns a mutable builder for constructing an instance of RealtimeResponseUsageInputTokenDetails. -
-
Method Detail
-
audioTokens
final Optional<Long> audioTokens()
The number of audio tokens used in the Response.
-
cachedTokens
final Optional<Long> cachedTokens()
The number of cached 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.
-
_cachedTokens
final JsonField<Long> _cachedTokens()
Returns the raw JSON value of cachedTokens.
Unlike cachedTokens, 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 RealtimeResponseUsageInputTokenDetails.Builder toBuilder()
-
validate
final RealtimeResponseUsageInputTokenDetails validate()
-
builder
final static RealtimeResponseUsageInputTokenDetails.Builder builder()
Returns a mutable builder for constructing an instance of RealtimeResponseUsageInputTokenDetails.
-
-
-
-