openai-client-base 0.12.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};

/// ShellCallOutcome : 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 ShellCallOutcome {
    #[serde(rename = "FunctionShellCallOutputTimeoutOutcome")]
    FunctionShellCallOutputTimeoutOutcome(Box<models::FunctionShellCallOutputTimeoutOutcome>),
    #[serde(rename = "FunctionShellCallOutputExitOutcome")]
    FunctionShellCallOutputExitOutcome(Box<models::FunctionShellCallOutputExitOutcome>),
}

impl Default for ShellCallOutcome {
    fn default() -> Self {
        Self::FunctionShellCallOutputTimeoutOutcome(Default::default())
    }
}