feat: Added the memory configuration properties and storage to the main app config, roles, sessions, and agents.

This commit is contained in:
2026-06-10 17:50:28 -06:00
parent b2d70a3fd3
commit 7e097e0465
6 changed files with 117 additions and 0 deletions
+6
View File
@@ -352,6 +352,10 @@ impl Agent {
self.config.enabled_skills.as_deref()
}
pub fn memory(&self) -> Option<bool> {
self.config.memory
}
pub fn set_skills_enabled(&mut self, value: Option<bool>) {
self.config.skills_enabled = value;
}
@@ -638,6 +642,8 @@ pub struct AgentConfig {
#[serde(skip_serializing_if = "Option::is_none")]
pub skill_instructions: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub memory: Option<bool>,
#[serde(skip_serializing_if = "Option::is_none")]
pub compression_threshold: Option<usize>,
#[serde(default)]
pub description: String,