refactor(storage): 优化向量记忆存储的批处理和错误处理机制

- 改进_memory_to_vector_format方法,增强元数据序列化和错误处理
- 重构store_memories方法,实现真正的批处理存储
- 添加详细的日志记录,提升系统可观测性
- 修复memory_id获取和缓存问题
- 增强向量数据库操作的容错能力
- 调整日志级别,优化调试信息输出
This commit is contained in:
Windpicker-owo
2025-10-02 08:23:19 +08:00
parent 89f007fa33
commit c4aa34bc0c
2 changed files with 144 additions and 76 deletions

View File

@@ -127,7 +127,7 @@ class ChatterActionPlanner:
}
)
logger.debug(
logger.info(
f"消息 {message.message_id} 兴趣度: {message_interest:.3f}, 应回复: {message.should_reply}"
)