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

Method GetSpec

pkg/agent/subagent.go:177–186  ·  view source on GitHub ↗

GetSpec 获取子 Agent 规格

(name string)

Source from the content-addressed store, hash-verified

175
176// GetSpec 获取子 Agent 规格
177func (m *SubAgentManager) GetSpec(name string) (*types.SubAgentSpec, error) {
178 m.mu.RLock()
179 defer m.mu.RUnlock()
180
181 spec, ok := m.specs[name]
182 if !ok {
183 return nil, fmt.Errorf("subagent spec not found: %s", name)
184 }
185 return spec, nil
186}
187
188// ListSpecs 列出所有子 Agent 规格
189func (m *SubAgentManager) ListSpecs() []*types.SubAgentSpec {

Callers 4

ExecuteMethod · 0.95
ExecuteAsyncMethod · 0.95

Calls

no outgoing calls