openai-client-base 0.16.0

Auto-generated Rust client for the OpenAI API
/*
 * OpenAI API
 *
 * The OpenAI REST API. Please see https://platform.openai.com/docs/api-reference for more details.
 *
 * The version of the OpenAPI document: 2.3.0
 *
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// LiveClientEvent : Client events for Live. Initialize a primary WebSocket with session.start and wait for session.started. WebRTC creation already starts the session. Audio append is primary WebSocket-only. See the [Live prompting guide](https://developers.openai.com/api/docs/guides/live-prompting) before writing frontend instructions and delegation policies.
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
#[serde(untagged)]
pub enum LiveClientEvent {
    LiveSessionStartEvent(Box<models::LiveSessionStartEvent>),
    LiveSessionUpdateParam(Box<models::LiveSessionUpdateParam>),
    LiveInputAudioAppendEvent(Box<models::LiveInputAudioAppendEvent>),
    LiveInputAudioMuteParam(Box<models::LiveInputAudioMuteParam>),
    LiveInputAudioUnmuteParam(Box<models::LiveInputAudioUnmuteParam>),
    LiveOutputAudioFixturePlayParam(Box<models::LiveOutputAudioFixturePlayParam>),
    LiveInstructionsAppendParam(Box<models::LiveInstructionsAppendParam>),
    LiveThinkingAppendParam(Box<models::LiveThinkingAppendParam>),
    LiveCommentaryAppendParam(Box<models::LiveCommentaryAppendParam>),
    LiveDecisionCreateParam(Box<models::LiveDecisionCreateParam>),
    LiveDecisionItemCreateParam(Box<models::LiveDecisionItemCreateParam>),
    LiveDecisionItemDeleteParam(Box<models::LiveDecisionItemDeleteParam>),
    LiveResponseItemCreateParam(Box<models::LiveResponseItemCreateParam>),
    LiveResponseCreateParam(Box<models::LiveResponseCreateParam>),
    LiveSessionCloseParam(Box<models::LiveSessionCloseParam>),
}