Package com.openai.models.batches
Class BatchUsage.InputTokensDetails
-
- All Implemented Interfaces:
public final class BatchUsage.InputTokensDetails
A detailed breakdown of the input tokens.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
BatchUsage.InputTokensDetails.Builder
A builder for InputTokensDetails.
-
Method Summary
Modifier and Type Method Description final Long
cachedTokens()
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.Builder
toBuilder()
final BatchUsage.InputTokensDetails
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static BatchUsage.InputTokensDetails.Builder
builder()
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()
-
builder
final static BatchUsage.InputTokensDetails.Builder builder()
Returns a mutable builder for constructing an instance of InputTokensDetails.
The following fields are required:
.cachedTokens()
-
-
-
-