Package com.openai.models
Class RunStep.Usage
-
- All Implemented Interfaces:
public final class RunStep.UsageUsage statistics related to the run step. This value will be
nullwhile the run step's status isin_progress.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classRunStep.Usage.BuilderA builder for Usage.
-
Method Summary
Modifier and Type Method Description final LongcompletionTokens()Number of completion tokens used over the course of the run step. final LongpromptTokens()Number of prompt tokens used over the course of the run step. final LongtotalTokens()Total number of tokens used (prompt + completion). final JsonField<Long>_completionTokens()Number of completion tokens used over the course of the run step. final JsonField<Long>_promptTokens()Number of prompt tokens used over the course of the run step. final JsonField<Long>_totalTokens()Total number of tokens used (prompt + completion). final Map<String, JsonValue>_additionalProperties()final RunStep.Usagevalidate()final RunStep.Usage.BuildertoBuilder()Booleanequals(Object other)IntegerhashCode()StringtoString()final static RunStep.Usage.Builderbuilder()-
-
Method Detail
-
completionTokens
final Long completionTokens()
Number of completion tokens used over the course of the run step.
-
promptTokens
final Long promptTokens()
Number of prompt tokens used over the course of the run step.
-
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 step.
-
_promptTokens
final JsonField<Long> _promptTokens()
Number of prompt tokens used over the course of the run step.
-
_totalTokens
final JsonField<Long> _totalTokens()
Total number of tokens used (prompt + completion).
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
validate
final RunStep.Usage validate()
-
toBuilder
final RunStep.Usage.Builder toBuilder()
-
builder
final static RunStep.Usage.Builder builder()
-
-
-
-