feat: 采用三层内存系统实现统一内存管理器

- 添加了UnifiedMemoryManager,以整合感知层、短期记忆层和长期记忆层。
- 实现了初始化、消息添加和内存搜索功能。
- 引入了记忆从短期存储到长期存储的自动转移机制。
- 开发了用于结构化内存表示的内存格式化工具。
- 增强日志记录功能,以便在内存操作过程中更好地进行追踪。
This commit is contained in:
Windpicker-owo
2025-11-18 16:17:25 +08:00
parent b5cfa41d36
commit dc3ad19809
19 changed files with 1544 additions and 1686 deletions

View File

@@ -1,5 +1,5 @@
[inner]
version = "1.3.9"
version = "1.4.0"
# 配置文件版本号迭代规则同bot_config.toml
@@ -214,3 +214,25 @@ max_tokens = 800
model_list = ["deepseek-r1-distill-qwen-32b"]
temperature = 0.7
max_tokens = 800
#------------记忆系统专用模型------------
[model_task_config.memory_short_term_builder] # 短期记忆构建模型(感知→短期格式化)
model_list = ["siliconflow-deepseek-ai/DeepSeek-V3.2-Exp"]
temperature = 0.2
max_tokens = 800
[model_task_config.memory_short_term_decider] # 短期记忆决策模型(决定合并/更新/新建/丢弃)
model_list = ["siliconflow-deepseek-ai/DeepSeek-V3.2-Exp"]
temperature = 0.2
max_tokens = 1000
[model_task_config.memory_long_term_builder] # 长期记忆构建模型(短期→长期图结构)
model_list = ["siliconflow-Qwen/Qwen3-Next-80B-A3B-Instruct"]
temperature = 0.2
max_tokens = 1500
[model_task_config.memory_judge] # 记忆检索裁判模型(判断检索是否充足)
model_list = ["siliconflow-THUDM/GLM-4-9B-0414"]
temperature = 0.1
max_tokens = 600