Usage statistics related to the run step. This value will be null while the run step's status is in_progress.

interface Usage {
    completion_tokens: number;
    prompt_tokens: number;
    total_tokens: number;
}

Properties

completion_tokens: number

Number of completion tokens used over the course of the run step.

prompt_tokens: number

Number of prompt tokens used over the course of the run step.

total_tokens: number

Total number of tokens used (prompt + completion).