openai_struct/models/
eval_run_output_item_sample_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 EvalRunOutputItemSampleUsage : Token usage details for the sample.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize)]
17pub struct EvalRunOutputItemSampleUsage {
18    /// The number of tokens retrieved from cache.
19    #[serde(rename = "cached_tokens")]
20    pub cached_tokens: i32,
21    /// The number of completion tokens generated.
22    #[serde(rename = "completion_tokens")]
23    pub completion_tokens: i32,
24    /// The number of prompt tokens used.
25    #[serde(rename = "prompt_tokens")]
26    pub prompt_tokens: i32,
27    /// The total number of tokens used.
28    #[serde(rename = "total_tokens")]
29    pub total_tokens: i32,
30}