windmill-api 1.544.2

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.544.2
 * 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 AiAgent {
    #[serde(rename = "input_transforms")]
    pub input_transforms: std::collections::HashMap<String, models::InputTransform>,
    #[serde(rename = "tools")]
    pub tools: Vec<models::FlowModule>,
    #[serde(rename = "type")]
    pub r#type: Type,
    #[serde(rename = "parallel", skip_serializing_if = "Option::is_none")]
    pub parallel: Option<bool>,
}

impl AiAgent {
    pub fn new(input_transforms: std::collections::HashMap<String, models::InputTransform>, tools: Vec<models::FlowModule>, r#type: Type) -> AiAgent {
        AiAgent {
            input_transforms,
            tools,
            r#type,
            parallel: None,
        }
    }
}
/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Type {
    #[serde(rename = "aiagent")]
    Aiagent,
}

impl Default for Type {
    fn default() -> Type {
        Self::Aiagent
    }
}