RunCompletionUsage interface
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.).
Properties
| completion |
Number of completion tokens used over the course of the run. |
| prompt |
Number of prompt tokens used over the course of the run. |
| total |
Total number of tokens used (prompt + completion). |
Property Details
completionTokens
Number of completion tokens used over the course of the run.
completionTokens: number
Property Value
number
promptTokens
Number of prompt tokens used over the course of the run.
promptTokens: number
Property Value
number
totalTokens
Total number of tokens used (prompt + completion).
totalTokens: number
Property Value
number