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

Method ListSubAgents

pkg/middleware/subagent.go:194–203  ·  view source on GitHub ↗

ListSubAgents 列出所有子代理

()

Source from the content-addressed store, hash-verified

192
193// ListSubAgents 列出所有子代理
194func (m *SubAgentMiddleware) ListSubAgents() []string {
195 m.mu.RLock()
196 defer m.mu.RUnlock()
197
198 names := make([]string, 0, len(m.agents))
199 for name := range m.agents {
200 names = append(names, name)
201 }
202 return names
203}
204
205// TaskTool task 工具实现
206type TaskTool struct {

Callers 5

mainFunction · 0.95
InputSchemaMethod · 0.80
PromptMethod · 0.80

Calls

no outgoing calls