Package com.openai.models
Class Run.Usage
-
- All Implemented Interfaces:
public final class Run.Usage
Usage statistics related to the run. This value will be
null
if 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 class
Run.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. final Long
promptTokens()
Number of prompt tokens used over the course of the run. 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. 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.Usage
validate()
final Run.Usage.Builder
toBuilder()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static Run.Usage.Builder
builder()
-
-
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()
-
-
-
-