Class OutputItemRetrieveResponse.Sample.Usage
-
- All Implemented Interfaces:
public final class OutputItemRetrieveResponse.Sample.UsageToken usage details for the sample.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classOutputItemRetrieveResponse.Sample.Usage.BuilderA builder for Usage.
-
Method Summary
Modifier and Type Method Description final LongcachedTokens()The number of tokens retrieved from cache. final LongcompletionTokens()The number of completion tokens generated. final LongpromptTokens()The number of prompt tokens used. final LongtotalTokens()The total number of tokens used. final JsonField<Long>_cachedTokens()Returns the raw JSON value of cachedTokens. final JsonField<Long>_completionTokens()Returns the raw JSON value of completionTokens. final JsonField<Long>_promptTokens()Returns the raw JSON value of promptTokens. final JsonField<Long>_totalTokens()Returns the raw JSON value of totalTokens. final Map<String, JsonValue>_additionalProperties()final OutputItemRetrieveResponse.Sample.Usage.BuildertoBuilder()final OutputItemRetrieveResponse.Sample.Usagevalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static OutputItemRetrieveResponse.Sample.Usage.Builderbuilder()Returns a mutable builder for constructing an instance of Usage. -
-
Method Detail
-
cachedTokens
final Long cachedTokens()
The number of tokens retrieved from cache.
-
completionTokens
final Long completionTokens()
The number of completion tokens generated.
-
promptTokens
final Long promptTokens()
The number of prompt tokens used.
-
totalTokens
final Long totalTokens()
The total number of tokens used.
-
_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.
-
_completionTokens
final JsonField<Long> _completionTokens()
Returns the raw JSON value of completionTokens.
Unlike completionTokens, this method doesn't throw if the JSON field has an unexpected type.
-
_promptTokens
final JsonField<Long> _promptTokens()
Returns the raw JSON value of promptTokens.
Unlike promptTokens, this method doesn't throw if the JSON field has an unexpected type.
-
_totalTokens
final JsonField<Long> _totalTokens()
Returns the raw JSON value of totalTokens.
Unlike totalTokens, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final OutputItemRetrieveResponse.Sample.Usage.Builder toBuilder()
-
validate
final OutputItemRetrieveResponse.Sample.Usage validate()
-
builder
final static OutputItemRetrieveResponse.Sample.Usage.Builder builder()
Returns a mutable builder for constructing an instance of Usage.
The following fields are required:
.cachedTokens() .completionTokens() .promptTokens() .totalTokens()
-
-
-
-