feat: 根据HelloAgents前十二章节课后习题优化对应功能#83
Open
lcyting wants to merge 1 commit into
Hidden character warning
The head ref may contain hidden characters: "feature/exercise-final\u200b"
Open
Conversation
Owner
|
暂时不合入大量的代码哈,目前框架的源码会根据下一个项目的需求进行调整,所以暂时不合入 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
对 [Datawhale Hello-Agents 教程](https://github.com/datawhalechina/hello-agents/tree/main/docs) 前 12 章课后习题的实践总结与系统化整理,涵盖从基础 Agent 构建到强化学习训练的完整学习路径。
核心优化
1. 核心架构增强
Conversation+ConversationManager,支持消息分叉(fork/branch)、多会话管理、JSON 持久化StreamEvent数据模型(text / thought / action / tool_call / tool_result / status / error / done)Plugin+PluginRegistry,6 个生命周期钩子,自动发现已安装插件2. 工具系统扩展(+5 个新工具)
3. 记忆系统重构
MemoryManager,支持遗忘清理、归档恢复4. 上下文工程增强
5. 评估系统完善
6. 强化学习扩展
7. 课程学习系统 🆕
从简单任务逐步过渡到复杂任务,包含
CurriculumPlanner、TaskGenerator、TransitionEvaluator、DifficultyAdapter、ProgressTracker、CurriculumTrainer、CurriculumVisualizer七大组件。8. 解决方案
solutions/code_refactor_assistant.py):集成 NoteTool + SecureTerminalTool + ApprovalManager 的自动化代码重构管理