mistral-openapi-client 0.1.0

Our Chat Completion and Embeddings APIs specification. Create your account on [La Plateforme](https://console.mistral.ai) to get access and read the [docs](https://docs.mistral.ai) to learn how to use it.
Documentation
/*
 * Mistral AI API
 *
 * Our Chat Completion and Embeddings APIs specification. Create your account on [La Plateforme](https://console.mistral.ai) to get access and read the [docs](https://docs.mistral.ai) to learn how to use it.
 *
 * The version of the OpenAPI document: 1.0.0
 * 
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ConversationAppendRequestBase {
    #[serde(rename = "inputs", skip_serializing_if = "Option::is_none")]
    pub inputs: Option<Box<models::ConversationInputs>>,
    /// Whether to stream back partial progress. Otherwise, the server will hold the request open until the timeout or until completion, with the response containing the full result as JSON.
    #[serde(rename = "stream", skip_serializing_if = "Option::is_none")]
    pub stream: Option<bool>,
    /// Whether to store the results into our servers or not.
    #[serde(rename = "store", skip_serializing_if = "Option::is_none")]
    pub store: Option<bool>,
    #[serde(rename = "handoff_execution", skip_serializing_if = "Option::is_none")]
    pub handoff_execution: Option<HandoffExecution>,
    /// Completion arguments that will be used to generate assistant responses. Can be overridden at each message request.
    #[serde(rename = "completion_args", skip_serializing_if = "Option::is_none")]
    pub completion_args: Option<Box<models::CompletionArgs>>,
    #[serde(rename = "tool_confirmations", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub tool_confirmations: Option<Option<Vec<models::ToolCallConfirmation>>>,
}

impl ConversationAppendRequestBase {
    pub fn new() -> ConversationAppendRequestBase {
        ConversationAppendRequestBase {
            inputs: None,
            stream: None,
            store: None,
            handoff_execution: None,
            completion_args: None,
            tool_confirmations: None,
        }
    }
}
/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum HandoffExecution {
    #[serde(rename = "client")]
    Client,
    #[serde(rename = "server")]
    Server,
}

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