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 ConversationAppendRequest {
    #[serde(rename = "inputs", skip_serializing_if = "Option::is_none")]
    pub inputs: Option<Box<models::ConversationInputs>>,
    #[serde(rename = "stream", skip_serializing_if = "Option::is_none")]
    pub stream: Option<Stream>,
    /// 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", skip_serializing_if = "Option::is_none")]
    pub tool_confirmations: Option<Vec<models::ToolCallConfirmation>>,
}

impl ConversationAppendRequest {
    pub fn new() -> ConversationAppendRequest {
        ConversationAppendRequest {
            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 Stream {
    #[serde(rename = "false")]
    False,
}

impl Default for Stream {
    fn default() -> Stream {
        Self::False
    }
}
/// 
#[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
    }
}