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

Method Status

pkg/core/pool.go:92–102  ·  view source on GitHub ↗

Status 获取 Agent 状态

(agentID string)

Source from the content-addressed store, hash-verified

90
91// Status 获取 Agent 状态
92func (p *Pool) Status(agentID string) (*types.AgentStatus, error) {
93 p.mu.RLock()
94 ag, exists := p.agents[agentID]
95 p.mu.RUnlock()
96
97 if !exists {
98 return nil, fmt.Errorf("agent not found: %s", agentID)
99 }
100
101 return ag.Status(), nil
102}
103
104// Resume 从存储中恢复 Agent
105func (p *Pool) Resume(ctx context.Context, agentID string, config *types.AgentConfig) (*agent.Agent, error) {

Callers 15

TestPool_StatusFunction · 0.95
handleAgentsMethod · 0.45
handleGetStatusMethod · 0.45
handleCommandFunction · 0.45
waitForCompletionFunction · 0.45
MiddlewareMethod · 0.45
DeleteMethod · 0.45
DeleteMethod · 0.45

Calls

no outgoing calls