SubAgentManagerFactory 将 SubAgentManager 适配为 SubAgentExecutorFactory 这个适配器允许 Task 工具使用真正的子 Agent 执行
| 10 | // SubAgentManagerFactory 将 SubAgentManager 适配为 SubAgentExecutorFactory |
| 11 | // 这个适配器允许 Task 工具使用真正的子 Agent 执行 |
| 12 | type SubAgentManagerFactory struct { |
| 13 | manager *SubAgentManager |
| 14 | } |
| 15 | |
| 16 | // NewSubAgentManagerFactory 创建工厂适配器 |
| 17 | func NewSubAgentManagerFactory(manager *SubAgentManager) *SubAgentManagerFactory { |
nothing calls this directly
no outgoing calls
no test coverage detected