Package com.openai.models
Class RunStep.Usage
-
- All Implemented Interfaces:
public final class RunStep.Usage
Usage statistics related to the run step. This value will be
null
while the run step's status isin_progress
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
RunStep.Usage.Builder
A builder for Usage.
-
Method Summary
Modifier and Type Method Description final Long
completionTokens()
Number of completion tokens used over the course of the run step. final Long
promptTokens()
Number of prompt tokens used over the course of the run step. final Long
totalTokens()
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.Usage
validate()
final RunStep.Usage.Builder
toBuilder()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static RunStep.Usage.Builder
builder()
-
-
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()
-
-
-
-