windmill_api/models/
flow_status_module_agent_actions_inner_one_of.rs

1/*
2 * Windmill API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.575.1
7 * Contact: contact@windmill.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct FlowStatusModuleAgentActionsInnerOneOf {
16    #[serde(rename = "job_id")]
17    pub job_id: uuid::Uuid,
18    #[serde(rename = "function_name")]
19    pub function_name: String,
20    #[serde(rename = "type")]
21    pub r#type: Type,
22    #[serde(rename = "module_id")]
23    pub module_id: String,
24}
25
26impl FlowStatusModuleAgentActionsInnerOneOf {
27    pub fn new(job_id: uuid::Uuid, function_name: String, r#type: Type, module_id: String) -> FlowStatusModuleAgentActionsInnerOneOf {
28        FlowStatusModuleAgentActionsInnerOneOf {
29            job_id,
30            function_name,
31            r#type,
32            module_id,
33        }
34    }
35}
36/// 
37#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
38pub enum Type {
39    #[serde(rename = "tool_call")]
40    ToolCall,
41}
42
43impl Default for Type {
44    fn default() -> Type {
45        Self::ToolCall
46    }
47}
48