11 Commits

Author SHA1 Message Date
oudecheng
5273a7b335 feat: 添加记忆数量检查,避免在保留数不足时进行整理 2026-06-02 16:18:16 +08:00
b4ef56803f feat: 添加内存维护配置,优化记忆整理逻辑和限制 2026-05-23 16:05:11 +08:00
oudecheng
3aeaea5fe4 feat: 增加最大令牌数至4000,优化内存维护服务的错误处理逻辑 2026-05-13 09:51:02 +08:00
9d9fa1dc4b feat: 添加 memory_maintenance_timeout_secs 配置,优化内存维护超时设置 2026-05-12 22:11:34 +08:00
5a0c018ee7 feat: 更新内存维护逻辑,调整返回类型为Option以处理无结果情况 2026-05-12 21:04:17 +08:00
456a999494 feat: 优化内存维护逻辑,移除未使用的结构体,确保响应内容包含必要标签,并清理提示词加载中的注释和空白 2026-05-11 22:43:22 +08:00
oudecheng
3db0225838 feat: 重构记忆维护逻辑,移除不再使用的字段,添加新的整理和摘要功能 2026-05-11 15:19:46 +08:00
7c48a0f7f9 feat: 简化内存维护逻辑,移除不必要的时间戳参数,优化代码可读性 2026-05-05 19:40:07 +08:00
716d92a618 feat: 引入 AgentRuntimeConfig,重构相关模块以支持运行时配置
Co-authored-by: Copilot <copilot@github.com>
2026-04-30 22:34:22 +08:00
04fc2c0710 feat: 添加记忆维护的错误处理逻辑,优化传输错误的上下文信息
Co-authored-by: Copilot <copilot@github.com>
2026-04-28 18:10:23 +08:00
fa3354db9c feat: add context_window_tokens to model configuration and update related logic
- Introduced context_window_tokens in ModelConfig and LLMProviderConfig structs.
- Updated context window estimation logic in ContextCompressor to use context_window_tokens.
- Modified tests to accommodate new context_window_tokens field.
- Refactored memory maintenance logic into a new memory_maintenance.rs file for better organization.
- Ensured backward compatibility by providing default values where necessary.

Co-authored-by: Copilot <copilot@github.com>
2026-04-28 11:29:06 +08:00