Skip to main content

windmill_api/models/
static_memory_transform.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.626.0
7 * Contact: contact@windmill.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// StaticMemoryTransform : Static memory configuration passed directly to the AI agent
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct StaticMemoryTransform {
17    #[serde(rename = "value")]
18    pub value: Box<models::MemoryConfig>,
19    #[serde(rename = "type")]
20    pub r#type: Type,
21}
22
23impl StaticMemoryTransform {
24    /// Static memory configuration passed directly to the AI agent
25    pub fn new(value: models::MemoryConfig, r#type: Type) -> StaticMemoryTransform {
26        StaticMemoryTransform {
27            value: Box::new(value),
28            r#type,
29        }
30    }
31}
32/// 
33#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
34pub enum Type {
35    #[serde(rename = "static")]
36    Static,
37}
38
39impl Default for Type {
40    fn default() -> Type {
41        Self::Static
42    }
43}
44