Pool Agent 池 - 管理多个 Agent 的生命周期
| 19 | |
| 20 | // Pool Agent 池 - 管理多个 Agent 的生命周期 |
| 21 | type Pool struct { |
| 22 | mu sync.RWMutex |
| 23 | agents map[string]*agent.Agent |
| 24 | deps *agent.Dependencies |
| 25 | maxAgents int |
| 26 | } |
| 27 | |
| 28 | // NewPool 创建 Agent 池 |
| 29 | func NewPool(opts *PoolOptions) *Pool { |
nothing calls this directly
no outgoing calls
no test coverage detected