windmill-api 1.847.0

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * Windmill API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.847.0
 * Contact: contact@windmill.dev
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct RunAgentRequest {
    #[serde(rename = "user_message", skip_serializing_if = "Option::is_none")]
    pub user_message: Option<String>,
    #[serde(rename = "user_attachments", skip_serializing_if = "Option::is_none")]
    pub user_attachments: Option<Vec<serde_json::Value>>,
    /// The history to answer from, as chat messages, when the agent's memory is off. An agent with managed memory reads its conversation instead and ignores this. 
    #[serde(rename = "previous_messages", skip_serializing_if = "Option::is_none")]
    pub previous_messages: Option<Vec<serde_json::Value>>,
}

impl RunAgentRequest {
    pub fn new() -> RunAgentRequest {
        RunAgentRequest {
            user_message: None,
            user_attachments: None,
            previous_messages: None,
        }
    }
}