outfox_openai/spec/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    #[serde(rename = "type")]
7    pub kind: String,
8
9    /// Error code, if any.
10    pub code: Option<String>,
11
12    /// A human-readable error message.
13    pub message: String,
14
15    /// Parameter related to the error, if any.
16    pub param: Option<String>,
17
18    /// The event_id of the client event that caused the error, if applicable.
19    pub event_id: Option<String>,
20}