async_openai/types/realtime/
error.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Serialize, Deserialize, Clone)]
4pub struct RealtimeAPIError {
5    /// The type of error (e.g., "invalid_request_error", "server_error").
6    pub r#type: String,
7
8    /// Error code, if any.
9    pub code: Option<String>,
10
11    /// A human-readable error message.
12    pub message: String,
13
14    /// Parameter related to the error, if any.
15    pub param: Option<String>,
16
17    /// The event_id of the client event that caused the error, if applicable.
18    pub event_id: Option<String>,
19}