openai_struct/models/
realtime_conversation_item_content.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#[allow(unused_imports)]
12use serde_json::Value;
13
14#[derive(Debug, Serialize, Deserialize)]
15pub struct RealtimeConversationItemContent {
16    /// Base64-encoded audio bytes, used for `input_audio` content type.
17    #[serde(rename = "audio")]
18    pub audio: Option<String>,
19    /// ID of a previous conversation item to reference (for `item_reference` content types in `response.create` events). These can reference both client and server created items.
20    #[serde(rename = "id")]
21    pub id: Option<String>,
22    /// The text content, used for `input_text` and `text` content types.
23    #[serde(rename = "text")]
24    pub text: Option<String>,
25    /// The transcript of the audio, used for `input_audio` content type.
26    #[serde(rename = "transcript")]
27    pub transcript: Option<String>,
28    /// The content type (`input_text`, `input_audio`, `item_reference`, `text`).
29    #[serde(rename = "type")]
30    pub _type: Option<String>,
31}