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

/// ItemField : An item representing a message, tool call, tool output, reasoning, or other response element.
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
#[serde(untagged)]
pub enum ItemField {
    Message(Box<models::Message>),
    FunctionToolCall(Box<models::FunctionToolCall>),
    ToolSearchCall(Box<models::ToolSearchCall>),
    ToolSearchOutput(Box<models::ToolSearchOutput>),
    FunctionToolCallOutput(Box<models::FunctionToolCallOutput>),
    FileSearchToolCall(Box<models::FileSearchToolCall>),
    WebSearchToolCall(Box<models::WebSearchToolCall>),
    ImageGenToolCall(Box<models::ImageGenToolCall>),
    ComputerToolCall(Box<models::ComputerToolCall>),
    ComputerToolCallOutputResource(Box<models::ComputerToolCallOutputResource>),
    ReasoningItem(Box<models::ReasoningItem>),
    CompactionBody(Box<models::CompactionBody>),
    CodeInterpreterToolCall(Box<models::CodeInterpreterToolCall>),
    LocalShellToolCall(Box<models::LocalShellToolCall>),
    LocalShellToolCallOutput(Box<models::LocalShellToolCallOutput>),
    FunctionShellCall(Box<models::FunctionShellCall>),
    FunctionShellCallOutput(Box<models::FunctionShellCallOutput>),
    ApplyPatchToolCall(Box<models::ApplyPatchToolCall>),
    ApplyPatchToolCallOutput(Box<models::ApplyPatchToolCallOutput>),
    McpListTools(Box<models::McpListTools>),
    McpApprovalRequest(Box<models::McpApprovalRequest>),
    McpApprovalResponseResource(Box<models::McpApprovalResponseResource>),
    McpToolCall(Box<models::McpToolCall>),
    CustomToolCall(Box<models::CustomToolCall>),
    CustomToolCallOutput(Box<models::CustomToolCallOutput>),
}