Class RunCreateResponse.PerModelUsage
-
- All Implemented Interfaces:
public final class RunCreateResponse.PerModelUsage
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classRunCreateResponse.PerModelUsage.BuilderA builder for PerModelUsage.
-
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 LonginvocationCount()The number of invocations. final StringmodelName()The name of the model. 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>_invocationCount()Returns the raw JSON value of invocationCount. final JsonField<String>_modelName()Returns the raw JSON value of modelName. 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 RunCreateResponse.PerModelUsage.BuildertoBuilder()final RunCreateResponse.PerModelUsagevalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static RunCreateResponse.PerModelUsage.Builderbuilder()Returns a mutable builder for constructing an instance of PerModelUsage. -
-
Method Detail
-
cachedTokens
final Long cachedTokens()
The number of tokens retrieved from cache.
-
completionTokens
final Long completionTokens()
The number of completion tokens generated.
-
invocationCount
final Long invocationCount()
The number of invocations.
-
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.
-
_invocationCount
final JsonField<Long> _invocationCount()
Returns the raw JSON value of invocationCount.
Unlike invocationCount, this method doesn't throw if the JSON field has an unexpected type.
-
_modelName
final JsonField<String> _modelName()
Returns the raw JSON value of modelName.
Unlike modelName, 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 RunCreateResponse.PerModelUsage.Builder toBuilder()
-
validate
final RunCreateResponse.PerModelUsage validate()
-
builder
final static RunCreateResponse.PerModelUsage.Builder builder()
Returns a mutable builder for constructing an instance of PerModelUsage.
The following fields are required:
.cachedTokens() .completionTokens() .invocationCount() .modelName() .promptTokens() .totalTokens()
-
-
-
-