feat: gen memories config (#12999)

This commit is contained in:
jif-oai
2026-02-27 12:38:47 +01:00
committed by GitHub
parent a63d8bd569
commit bbd237348d
6 changed files with 98 additions and 7 deletions

View File

@@ -2490,6 +2490,7 @@ persistence = "none"
let memories = r#"
[memories]
generate_memories = false
use_memories = false
max_raw_memories_for_global = 512
max_unused_days = 21
@@ -2503,6 +2504,7 @@ phase_2_model = "gpt-5"
toml::from_str::<ConfigToml>(memories).expect("TOML deserialization should succeed");
assert_eq!(
Some(MemoriesToml {
generate_memories: Some(false),
use_memories: Some(false),
max_raw_memories_for_global: Some(512),
max_unused_days: Some(21),
@@ -2524,6 +2526,7 @@ phase_2_model = "gpt-5"
assert_eq!(
config.memories,
MemoriesConfig {
generate_memories: false,
use_memories: false,
max_raw_memories_for_global: 512,
max_unused_days: 21,