Get 获取指定 Agent
(agentID string)
| 67 | |
| 68 | // Get 获取指定 Agent |
| 69 | func (p *Pool) Get(agentID string) (*agent.Agent, bool) { |
| 70 | p.mu.RLock() |
| 71 | defer p.mu.RUnlock() |
| 72 | |
| 73 | ag, exists := p.agents[agentID] |
| 74 | return ag, exists |
| 75 | } |
| 76 | |
| 77 | // List 列出所有 Agent ID |
| 78 | func (p *Pool) List(prefix string) []string { |
no outgoing calls