ListSubAgents 列出所有子代理
()
| 192 | |
| 193 | // ListSubAgents 列出所有子代理 |
| 194 | func (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 工具实现 |
| 206 | type TaskTool struct { |
no outgoing calls