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

Method Create

pkg/agent/actor.go:497–504  ·  view source on GitHub ↗

Create 创建 Agent Actor

(ctx context.Context, config *types.AgentConfig)

Source from the content-addressed store, hash-verified

495
496// Create 创建 Agent Actor
497func (f *AgentActorFactory) Create(ctx context.Context, config *types.AgentConfig) (*AgentActor, error) {
498 agent, err := Create(ctx, config, f.deps)
499 if err != nil {
500 return nil, fmt.Errorf("create agent: %w", err)
501 }
502
503 return NewAgentActor(agent), nil
504}
505
506// CreateAndSpawn 创建并在 Actor 系统中启动 Agent
507func (f *AgentActorFactory) CreateAndSpawn(

Callers 1

CreateAndSpawnMethod · 0.95

Calls 2

CreateFunction · 0.85
NewAgentActorFunction · 0.85

Tested by

no test coverage detected