feat: 支持动态创建子agent能力#109
Merged
helloopenworld merged 1 commit intoJul 3, 2026
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #109 +/- ##
==========================================
Coverage ? 87.51506%
==========================================
Files ? 467
Lines ? 44005
Branches ? 0
==========================================
Hits ? 38511
Misses ? 5494
Partials ? 0 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
93ef195 to
bd59325
Compare
6bf9893 to
8b32a8d
Compare
8b32a8d to
10d0f75
Compare
helloopenworld
approved these changes
Jul 3, 2026
| - **上下文污染**:探索性搜索、工具输出、中间结果填满上下文窗口,把真正有用的信息挤走。 | ||
| - **工具泛滥**:父 agent 一直携带所有工具,而大多数子任务只需其中一小部分。 | ||
| - **角色无法隔离**:父 agent 只有一个 system prompt,无法为不同子任务切换不同人设或约束。 | ||
| - **缺乏旁观视角**:自己写的代码很难自己发现问题。独立的上下文如同"第二双眼睛",可以客观审计、质疑方案、验证结论,不受父 agent 推理路径的干扰。 |
Contributor
There was a problem hiding this comment.
可以讲一下动态SubAgent的方式,与先前框架subagent的区别
| that the parent agent can act on directly.""" | ||
|
|
||
|
|
||
| class DynamicAgentTool(BaseTool): |
Contributor
There was a problem hiding this comment.
这里的名字也改成SubAgentTool吧
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.
No description provided.