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

Function NewSubAgentExecutorWrapper

pkg/agent/subagent_factory.go:46–57  ·  view source on GitHub ↗

NewSubAgentExecutorWrapper 创建执行器包装

(manager *SubAgentManager, agentType string)

Source from the content-addressed store, hash-verified

44
45// NewSubAgentExecutorWrapper 创建执行器包装
46func NewSubAgentExecutorWrapper(manager *SubAgentManager, agentType string) (*SubAgentExecutorWrapper, error) {
47 spec, err := manager.GetSpec(agentType)
48 if err != nil {
49 return nil, err
50 }
51
52 return &SubAgentExecutorWrapper{
53 manager: manager,
54 agentType: agentType,
55 spec: spec,
56 }, nil
57}
58
59// GetSpec 获取子 Agent 规格
60func (w *SubAgentExecutorWrapper) GetSpec() *types.SubAgentSpec {

Callers

nothing calls this directly

Calls 1

GetSpecMethod · 0.65

Tested by

no test coverage detected