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

/// BetaResponseSteerRequiredInput : An input stub identifying an outstanding client-owned tool result or approval decision. Copy the stub and fill the result fields using the corresponding `response.create` input schema. Use saved results without rerunning the tool. The server does not supply results, approval decisions, or safety acknowledgements in these stubs.
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
#[serde(tag = "type")]
pub enum BetaResponseSteerRequiredInput {
    #[serde(rename = "function_call_output")]
    AnyOf(serde_json::Value),
    #[serde(rename = "custom_tool_call_output")]
    AnyOf1(serde_json::Value),
    #[serde(rename = "computer_call_output")]
    AnyOf2(serde_json::Value),
    #[serde(rename = "shell_call_output")]
    AnyOf3(serde_json::Value),
    #[serde(rename = "apply_patch_call_output")]
    AnyOf4(serde_json::Value),
    #[serde(rename = "tool_search_output")]
    AnyOf5(serde_json::Value),
    #[serde(rename = "mcp_approval_response")]
    AnyOf6(serde_json::Value),
}

///
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Execution {
    #[serde(rename = "client")]
    Client,
}

impl Default for Execution {
    fn default() -> Execution {
        Self::Client
    }
}