Class RunCreateResponse.PerModelUsage
-
- All Implemented Interfaces:
public final class RunCreateResponse.PerModelUsage
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
RunCreateResponse.PerModelUsage.Builder
A builder for PerModelUsage.
-
Method Summary
Modifier and Type Method Description final Long
cachedTokens()
The number of tokens retrieved from cache. final Long
completionTokens()
The number of completion tokens generated. final Long
invocationCount()
The number of invocations. final String
modelName()
The name of the model. final Long
promptTokens()
The number of prompt tokens used. final Long
totalTokens()
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.Builder
toBuilder()
final RunCreateResponse.PerModelUsage
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static RunCreateResponse.PerModelUsage.Builder
builder()
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()
-
-
-
-