openai_struct/models/realtime_client_event_response_create.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 RealtimeClientEventResponseCreate : This event instructs the server to create a Response, which means triggering model inference. When in Server VAD mode, the server will create Responses automatically. A Response will include at least one Item, and may have two, in which case the second will be a function call. These Items will be appended to the conversation history. The server will respond with a `response.created` event, events for Items and content created, and finally a `response.done` event to indicate the Response is complete. The `response.create` event includes inference configuration like `instructions`, and `temperature`. These fields will override the Session's configuration for this Response only.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize)]
17pub struct RealtimeClientEventResponseCreate {
18 /// Optional client-generated ID used to identify this event.
19 #[serde(rename = "event_id")]
20 pub event_id: Option<String>,
21 #[serde(rename = "response")]
22 pub response: Option<crate::models::RealtimeResponseCreateParams>,
23 /// The event type, must be `response.create`.
24 #[serde(rename = "type")]
25 pub _type: String,
26}