openai_struct/models/
run_step_completion_usage.rs

1/*
2 * OpenAI API
3 *
4 * The OpenAI REST API. Please see pub https://platform.openai.com/docs/api-reference for more details.
5 *
6 * OpenAPI spec pub version: 2.3.0
7 *
8 * Generated pub by: https://github.com/swagger-api/swagger-codegen.git
9 */
10
11/// pub RunStepCompletionUsage : Usage statistics related to the run step. This value will be `null` while the run step's status is `in_progress`.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize)]
17pub struct RunStepCompletionUsage {
18    /// Number of completion tokens used over the course of the run step.
19    #[serde(rename = "completion_tokens")]
20    pub completion_tokens: i32,
21    /// Number of prompt tokens used over the course of the run step.
22    #[serde(rename = "prompt_tokens")]
23    pub prompt_tokens: i32,
24    /// Total number of tokens used (prompt + completion).
25    #[serde(rename = "total_tokens")]
26    pub total_tokens: i32,
27}