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

Function NewAgentActor

pkg/agent/actor.go:162–171  ·  view source on GitHub ↗

NewAgentActor 创建 Agent Actor 适配器

(agent *Agent)

Source from the content-addressed store, hash-verified

160
161// NewAgentActor 创建 Agent Actor 适配器
162func NewAgentActor(agent *Agent) *AgentActor {
163 ctx, cancel := context.WithCancel(context.Background())
164 return &AgentActor{
165 agent: agent,
166 isRunning: true,
167 stats: &AgentActorStats{},
168 ctx: ctx,
169 cancel: cancel,
170 }
171}
172
173// Receive 处理接收到的消息(Actor 核心方法)
174func (a *AgentActor) Receive(ctx *actor.Context, msg actor.Message) {

Callers 1

CreateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected