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

Method Receive

pkg/actor/types.go:62–62  ·  view source on GitHub ↗

Receive 处理接收到的消息 ctx 提供 Actor 上下文,msg 为接收到的消息

(ctx *Context, msg Message)

Source from the content-addressed store, hash-verified

60 // Receive 处理接收到的消息
61 // ctx 提供 Actor 上下文,msg 为接收到的消息
62 Receive(ctx *Context, msg Message)
63}
64
65// ActorFunc 函数式 Actor,便于快速创建简单 Actor

Callers 4

processMessageMethod · 0.65
applyDirectiveMethod · 0.65
restartAllSiblingsMethod · 0.65
cleanupActorMethod · 0.65

Implementers 14

MockAgentActorpkg/a2a/server_test.go
EchoActorpkg/actor/actor_test.go
CounterActorpkg/actor/actor_test.go
ParentActorpkg/actor/actor_test.go
PanicActorpkg/actor/actor_test.go
SupervisorActorpkg/actor/supervisor.go
AgentActorpkg/agent/actor.go
CoordinatorActorpkg/workflow/actor_engine.go
SimpleAgentexamples/a2a/main.go
EchoActorexamples/actor/main.go
CounterActorexamples/actor/main.go
UnstableActorexamples/actor/main.go

Calls

no outgoing calls

Tested by

no test coverage detected