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

Method Get

pkg/core/pool.go:69–75  ·  view source on GitHub ↗

Get 获取指定 Agent

(agentID string)

Source from the content-addressed store, hash-verified

67
68// Get 获取指定 Agent
69func (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
78func (p *Pool) List(prefix string) []string {

Callers 4

TestPool_CreateFunction · 0.95
TestPool_RemoveFunction · 0.95
TestPool_ResumeFunction · 0.95

Calls

no outgoing calls

Tested by 4

TestPool_CreateFunction · 0.76
TestPool_RemoveFunction · 0.76
TestPool_ResumeFunction · 0.76