Class ConversationItemInputAudioTranscriptionCompletedEvent.Usage.TranscriptTextUsageTokens
-
- All Implemented Interfaces:
public final class ConversationItemInputAudioTranscriptionCompletedEvent.Usage.TranscriptTextUsageTokensUsage statistics for models billed by token usage.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classConversationItemInputAudioTranscriptionCompletedEvent.Usage.TranscriptTextUsageTokens.BuilderA builder for TranscriptTextUsageTokens.
public final classConversationItemInputAudioTranscriptionCompletedEvent.Usage.TranscriptTextUsageTokens.InputTokenDetailsDetails about the input tokens billed for this request.
-
Method Summary
-
-
Method Detail
-
inputTokens
final Long inputTokens()
Number of input tokens billed for this request.
-
outputTokens
final Long outputTokens()
Number of output tokens generated.
-
totalTokens
final Long totalTokens()
Total number of tokens used (input + output).
-
_type
final JsonValue _type()
The type of the usage object. Always
tokensfor this variant.Expected to always return the following:
JsonValue.from("tokens")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
inputTokenDetails
final Optional<ConversationItemInputAudioTranscriptionCompletedEvent.Usage.TranscriptTextUsageTokens.InputTokenDetails> inputTokenDetails()
Details about the input tokens billed for this request.
-
_inputTokens
final JsonField<Long> _inputTokens()
Returns the raw JSON value of inputTokens.
Unlike inputTokens, this method doesn't throw if the JSON field has an unexpected type.
-
_outputTokens
final JsonField<Long> _outputTokens()
Returns the raw JSON value of outputTokens.
Unlike outputTokens, 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.
-
_inputTokenDetails
final JsonField<ConversationItemInputAudioTranscriptionCompletedEvent.Usage.TranscriptTextUsageTokens.InputTokenDetails> _inputTokenDetails()
Returns the raw JSON value of inputTokenDetails.
Unlike inputTokenDetails, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ConversationItemInputAudioTranscriptionCompletedEvent.Usage.TranscriptTextUsageTokens.Builder toBuilder()
-
validate
final ConversationItemInputAudioTranscriptionCompletedEvent.Usage.TranscriptTextUsageTokens 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 ConversationItemInputAudioTranscriptionCompletedEvent.Usage.TranscriptTextUsageTokens.Builder builder()
Returns a mutable builder for constructing an instance of TranscriptTextUsageTokens.
The following fields are required:
.inputTokens() .outputTokens() .totalTokens()
-
-
-
-