windmill-api 1.896.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.896.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 CallAiSessionTool200Response {
    #[serde(rename = "text")]
    pub text: String,
    #[serde(rename = "is_error")]
    pub is_error: bool,
    #[serde(rename = "effects")]
    pub effects: Vec<std::collections::HashMap<String, serde_json::Value>>,
    /// images the model reads after the tool results, sent only when the context's reads_images is set
    #[serde(rename = "images", skip_serializing_if = "Option::is_none")]
    pub images: Option<Vec<models::CallAiSessionTool200ResponseImagesInner>>,
}

impl CallAiSessionTool200Response {
    pub fn new(text: String, is_error: bool, effects: Vec<std::collections::HashMap<String, serde_json::Value>>) -> CallAiSessionTool200Response {
        CallAiSessionTool200Response {
            text,
            is_error,
            effects,
            images: None,
        }
    }
}