Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
feat: 新增AI对话长对话模式及记忆整理功能
功能概述
为微信公众号AI对话机器人新增长对话模式支持,实现智能记忆整理和对话历史管理。
详细实现
1. 数据模型扩展 (ChatStore.cs)
2. 核心功能实现 (CustomMessageHandler_AI.cs)
2.1 长对话模式控制
2.2 智能记忆整理机制
2.3 记忆驱动的对话系统
4. 使用方式
用户输入lc开启长对话模式后:
影响范围
fix.修复了“测试”消息无法正确触发的问题
原代码中把
requestMessage.Content == "测试"
误写成了defaultResponseMessage.Content == "测试"
,导致发送“测试”时会收到"您已退出【盛派网络小助手】的测试程序。"
的消息,现已修复。