Package com.openai.models
Class Run.Usage
-
- All Implemented Interfaces:
public final class Run.UsageUsage statistics related to the run. This value will be
nullif the run is not in a terminal state (i.e.in_progress,queued, etc.).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classRun.Usage.Builder
-
Method Summary
Modifier and Type Method Description final LongcompletionTokens()Number of completion tokens used over the course of the run. final LongpromptTokens()Number of prompt tokens used over the course of the run. final LongtotalTokens()Total number of tokens used (prompt + completion). final JsonField<Long>_completionTokens()Number of completion tokens used over the course of the run. final JsonField<Long>_promptTokens()Number of prompt tokens used over the course of the run. final JsonField<Long>_totalTokens()Total number of tokens used (prompt + completion). final Map<String, JsonValue>_additionalProperties()final Run.Usagevalidate()final Run.Usage.BuildertoBuilder()Booleanequals(Object other)IntegerhashCode()StringtoString()final static Run.Usage.Builderbuilder()-
-
Method Detail
-
completionTokens
final Long completionTokens()
Number of completion tokens used over the course of the run.
-
promptTokens
final Long promptTokens()
Number of prompt tokens used over the course of the run.
-
totalTokens
final Long totalTokens()
Total number of tokens used (prompt + completion).
-
_completionTokens
final JsonField<Long> _completionTokens()
Number of completion tokens used over the course of the run.
-
_promptTokens
final JsonField<Long> _promptTokens()
Number of prompt tokens used over the course of the run.
-
_totalTokens
final JsonField<Long> _totalTokens()
Total number of tokens used (prompt + completion).
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final Run.Usage.Builder toBuilder()
-
builder
final static Run.Usage.Builder builder()
-
-
-
-