openai_struct/models/
reasoning.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 Reasoning : **o-series models only**  Configuration options for  [reasoning models](https://platform.openai.com/docs/guides/reasoning).
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize)]
17pub struct Reasoning {
18    #[serde(rename = "effort")]
19    pub effort: Option<crate::models::ReasoningEffort>,
20    /// **Deprecated:** use `summary` instead.  A summary of the reasoning performed by the model. This can be useful for debugging and understanding the model's reasoning process. One of `auto`, `concise`, or `detailed`.
21    #[serde(rename = "generate_summary")]
22    pub generate_summary: Option<String>,
23    /// A summary of the reasoning performed by the model. This can be useful for debugging and understanding the model's reasoning process. One of `auto`, `concise`, or `detailed`.
24    #[serde(rename = "summary")]
25    pub summary: Option<String>,
26}