Package com.openai.models.batches
Class BatchUsage.InputTokensDetails
-
- All Implemented Interfaces:
public final class BatchUsage.InputTokensDetailsA detailed breakdown of the input tokens.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBatchUsage.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 BatchUsage.InputTokensDetails.BuildertoBuilder()final BatchUsage.InputTokensDetailsvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BatchUsage.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 BatchUsage.InputTokensDetails.Builder toBuilder()
-
validate
final BatchUsage.InputTokensDetails 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 BatchUsage.InputTokensDetails.Builder builder()
Returns a mutable builder for constructing an instance of InputTokensDetails.
The following fields are required:
.cachedTokens()
-
-
-
-