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 AgentUpdateRequest {
    #[serde(rename = "instructions", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub instructions: Option<Option<String>>,
    /// List of tools which are available to the model during the conversation.
    #[serde(rename = "tools", skip_serializing_if = "Option::is_none")]
    pub tools: Option<Vec<models::ToolsInner>>,
    /// 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", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub guardrails: Option<Option<Vec<models::GuardrailConfig>>>,
    #[serde(rename = "model", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub model: Option<Option<String>>,
    #[serde(rename = "name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub name: Option<Option<String>>,
    #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub description: Option<Option<String>>,
    #[serde(rename = "handoffs", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub handoffs: Option<Option<Vec<String>>>,
    #[serde(rename = "deployment_chat", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub deployment_chat: Option<Option<bool>>,
    /// Custom type for metadata with embedded validation.
    #[serde(rename = "metadata", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub metadata: Option<Option<std::collections::HashMap<String, serde_json::Value>>>,
    #[serde(rename = "version_message", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub version_message: Option<Option<String>>,
}

impl AgentUpdateRequest {
    pub fn new() -> AgentUpdateRequest {
        AgentUpdateRequest {
            instructions: None,
            tools: None,
            completion_args: None,
            guardrails: None,
            model: None,
            name: None,
            description: None,
            handoffs: None,
            deployment_chat: None,
            metadata: None,
            version_message: None,
        }
    }
}