openai_struct/models/
reasoning_item.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 ReasoningItem : A description of the chain of thought used by a reasoning model while generating a response.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize)]
17pub struct ReasoningItem {
18    /// The unique identifier of the reasoning content.
19    #[serde(rename = "id")]
20    pub id: String,
21    /// The status of the item. One of `in_progress`, `completed`, or `incomplete`. Populated when items are returned via API.
22    #[serde(rename = "status")]
23    pub status: Option<String>,
24    /// Reasoning text contents.
25    #[serde(rename = "summary")]
26    pub summary: Vec<crate::models::ReasoningItemSummary>,
27    /// The type of the object. Always `reasoning`.
28    #[serde(rename = "type")]
29    pub _type: String,
30}