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.
Overview
本 PR 实现了一个基于 Daniel Kahneman 的系统1(快速)和系统2(慢速)思维理论的双系统代理模式。该实现提供了一个灵活的框架,能够使用适当的处理策略来处理简单和复杂的查询。
Key Features
Architecture
DualSystemAgent:双系统代理的主要实现
DualSystemPlanner:负责思维模式选择的核心规划组件
FastThinkingAgent:用于快速、直觉性响应的系统1实现
SlowThinkingAgent: 可以配置,默认为 PeerAgent
ComplexityEvaluator:具有多个评估因素的输入复杂度分析器
Key Changes
Testing
Future Improvements
Breaking Changes
无。这是一个保持向后兼容性的新功能添加。
Dependencies
未添加新的依赖项。
Testing Instructions
python -m unittest tests/test_agentuniverse/unit/agent/default/dual_system_agent/test_dual_system_agent.py
Checklist
[x] 代码符合项目样式指南
[x] 添加并通过测试
[x] 更新文档
[x] 未引入新的警告
[x] 覆盖边界情况
[x] 考虑性能影响