windmill-api 1.792.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.792.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 CallMcpToolRequest {
    #[serde(rename = "tool")]
    pub tool: String,
    #[serde(rename = "arguments", skip_serializing_if = "Option::is_none")]
    pub arguments: Option<serde_json::Value>,
    /// set when the caller ran the tool without asking the user to confirm it; the call is refused unless the server's live listing marks the tool read-only 
    #[serde(rename = "read_only", skip_serializing_if = "Option::is_none")]
    pub read_only: Option<bool>,
}

impl CallMcpToolRequest {
    pub fn new(tool: String) -> CallMcpToolRequest {
        CallMcpToolRequest {
            tool,
            arguments: None,
            read_only: None,
        }
    }
}