# 长期记忆嵌入默认(启用开关、作用域、向量后端、SQLite 路径、注入与分块参数等)。
# 与 `config/default_config.toml`、`config/session.toml`、`config/context_inject.toml`、`config/tools.toml`、`config/sandbox.toml`、`config/planning.toml` 在 `load_config` 中顺序合并(本文件在 planning 之后),再被 config.toml / .agent_demo.toml 与 CM_LONG_TERM_MEMORY_* 覆盖。
[]
= true
= "conversation"
# 向量后端:需编译时启用 Cargo feature `fastembed`(`cargo build --features fastembed`);默认构建未链接时 finalize 降为 disabled。
= "fastembed"
= 256
= 8000
= ".crabmate/long_term_memory.db"
= 8
= 1024
= 8
= true
# 回合结束是否自动索引 user/assistant 终答;false 时仅 long_term_remember 等显式写入。CM_LONG_TERM_MEMORY_AUTO_INDEX_TURNS
= true
# 回合内构建/验证工具由失败转成功后自动沉淀经验(summarize 路径)。CM_LONG_TERM_MEMORY_AUTO_SUMMARIZE_EXPERIENCE
= true
# 召回注入时优先经验条(summarize / 自动沉淀 / explicit),并匹配 tags。CM_LONG_TERM_MEMORY_PRIORITIZE_EXPERIENCE_RECALL
= true
# 自动索引条默认存活秒数;0 永不过期(仍受 max_entries 淘汰)。CM_LONG_TERM_MEMORY_DEFAULT_TTL_SECS
= 0