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};

/// ShellCallOutcome1 : Represents either an exit outcome (with an exit code) or a timeout outcome for a shell call output chunk.
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
#[serde(untagged)]
pub enum ShellCallOutcome1 {
    #[serde(rename = "BetaFunctionShellCallOutputTimeoutOutcome")]
    BetaFunctionShellCallOutputTimeoutOutcome(
        Box<models::BetaFunctionShellCallOutputTimeoutOutcome>,
    ),
    #[serde(rename = "BetaFunctionShellCallOutputExitOutcome")]
    BetaFunctionShellCallOutputExitOutcome(Box<models::BetaFunctionShellCallOutputExitOutcome>),
}

impl Default for ShellCallOutcome1 {
    fn default() -> Self {
        Self::BetaFunctionShellCallOutputTimeoutOutcome(Default::default())
    }
}