/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.2.0
 * Contact: contact@orvanta.cloud
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct FlowStatusModuleAgentActionsInnerOneOf1 {
    #[serde(rename = "call_id")]
    pub call_id: uuid::Uuid,
    #[serde(rename = "function_name")]
    pub function_name: String,
    #[serde(rename = "resource_path")]
    pub resource_path: String,
    #[serde(rename = "type")]
    pub r#type: Type,
    #[serde(rename = "arguments", skip_serializing_if = "Option::is_none")]
    pub arguments: Option<serde_json::Value>,
}

impl FlowStatusModuleAgentActionsInnerOneOf1 {
    pub fn new(call_id: uuid::Uuid, function_name: String, resource_path: String, r#type: Type) -> FlowStatusModuleAgentActionsInnerOneOf1 {
        FlowStatusModuleAgentActionsInnerOneOf1 {
            call_id,
            function_name,
            resource_path,
            r#type,
            arguments: None,
        }
    }
}
/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Type {
    #[serde(rename = "mcp_tool_call")]
    McpToolCall,
}

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

