/*
 * 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};

/// MemoryAuto : Automatic context management
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct MemoryAuto {
    #[serde(rename = "kind")]
    pub kind: Kind,
    /// Maximum number of messages to retain in context
    #[serde(rename = "context_length", skip_serializing_if = "Option::is_none")]
    pub context_length: Option<i32>,
    /// Identifier for persistent memory across agent invocations
    #[serde(rename = "memory_id", skip_serializing_if = "Option::is_none")]
    pub memory_id: Option<String>,
}

impl MemoryAuto {
    /// Automatic context management
    pub fn new(kind: Kind) -> MemoryAuto {
        MemoryAuto {
            kind,
            context_length: None,
            memory_id: None,
        }
    }
}
/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Kind {
    #[serde(rename = "auto")]
    Auto,
}

impl Default for Kind {
    fn default() -> Kind {
        Self::Auto
    }
}

