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

Struct Pool

pkg/core/pool.go:21–26  ·  view source on GitHub ↗

Pool Agent 池 - 管理多个 Agent 的生命周期

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected