MCPcopy Create free account
hub / github.com/astercloud/aster / SubAgentManager

Struct SubAgentManager

pkg/agent/subagent.go:20–33  ·  view source on GitHub ↗

SubAgentManager 子 Agent 管理器 负责创建、执行和管理子 Agent 的生命周期

Source from the content-addressed store, hash-verified

18// SubAgentManager 子 Agent 管理器
19// 负责创建、执行和管理子 Agent 的生命周期
20type SubAgentManager struct {
21 mu sync.RWMutex
22 deps *Dependencies
23
24 // 运行中的子 Agent
25 running map[string]*SubAgentHandle
26
27 // 子 Agent 规格注册表
28 specs map[string]*types.SubAgentSpec
29
30 // 默认配置
31 defaultTimeout time.Duration
32 maxDepth int
33}
34
35// SubAgentHandle 子 Agent 句柄
36type SubAgentHandle struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected