openai_struct/models/
output_message.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 OutputMessage : An output message from the model.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize)]
17pub struct OutputMessage {
18    /// The content of the output message.
19    #[serde(rename = "content")]
20    pub content: Vec<crate::models::OutputContent>,
21    /// The unique ID of the output message.
22    #[serde(rename = "id")]
23    pub id: String,
24    /// The role of the output message. Always `assistant`.
25    #[serde(rename = "role")]
26    pub role: String,
27    /// The status of the message input. One of `in_progress`, `completed`, or `incomplete`. Populated when input items are returned via API.
28    #[serde(rename = "status")]
29    pub status: String,
30    /// The type of the output message. Always `message`.
31    #[serde(rename = "type")]
32    pub _type: String,
33}