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 ConversationRestartRequest {
    #[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 = "guardrails", skip_serializing_if = "Option::is_none")]
    pub guardrails: Option<Vec<models::GuardrailConfig>>,
    /// Custom type for metadata with embedded validation.
    #[serde(rename = "metadata", skip_serializing_if = "Option::is_none")]
    pub metadata: Option<std::collections::HashMap<String, serde_json::Value>>,
    #[serde(rename = "from_entry_id")]
    pub from_entry_id: String,
    #[serde(rename = "agent_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub agent_version: Option<Option<Box<models::AgentVersion2>>>,
}

impl ConversationRestartRequest {
    pub fn new(from_entry_id: String) -> ConversationRestartRequest {
        ConversationRestartRequest {
            inputs: None,
            stream: None,
            store: None,
            handoff_execution: None,
            completion_args: None,
            guardrails: None,
            metadata: None,
            from_entry_id,
            agent_version: 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
    }
}