Package com.openai.models.responses
Class ResponseUsage.InputTokensDetails
-
- All Implemented Interfaces:
public final class ResponseUsage.InputTokensDetailsA detailed breakdown of the input tokens.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classResponseUsage.InputTokensDetails.BuilderA builder for InputTokensDetails.
-
Method Summary
Modifier and Type Method Description final LongcachedTokens()The number of tokens that were retrieved from the cache. final JsonField<Long>_cachedTokens()Returns the raw JSON value of cachedTokens. final Map<String, JsonValue>_additionalProperties()final ResponseUsage.InputTokensDetails.BuildertoBuilder()final ResponseUsage.InputTokensDetailsvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ResponseUsage.InputTokensDetails.Builderbuilder()Returns a mutable builder for constructing an instance of InputTokensDetails. -
-
Method Detail
-
cachedTokens
final Long cachedTokens()
The number of tokens that were retrieved from the cache. More on prompt caching.
-
_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.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ResponseUsage.InputTokensDetails.Builder toBuilder()
-
validate
final ResponseUsage.InputTokensDetails validate()
-
builder
final static ResponseUsage.InputTokensDetails.Builder builder()
Returns a mutable builder for constructing an instance of InputTokensDetails.
The following fields are required:
.cachedTokens()
-
-
-
-