bodhi-realtime-agent / ToolRouterActor
Class: ToolRouterActor
Defined in: src/runtime/actors/tool-router-actor.ts:34
Lifecycle hooks + message handler for an actor.
Implements
Constructors
Constructor
new ToolRouterActor(
id,toolRegistry,inlineExecutor,sendMessage,transportActorId,subagentSupervisorId,mainAgentActorId,onTransferRequested?):ToolRouterActor
Defined in: src/runtime/actors/tool-router-actor.ts:37
Parameters
id
string
toolRegistry
Map<string, ToolRoutingInfo>
inlineExecutor
sendMessage
ActorSendFn
transportActorId
string
subagentSupervisorId
string
mainAgentActorId
string
onTransferRequested?
(toAgent) => void | Promise<void>
Returns
ToolRouterActor
Properties
id
readonlyid:string
Defined in: src/runtime/actors/tool-router-actor.ts:35
Unique actor identity.
Implementation of
Methods
onMessage()
onMessage(
envelope):Promise<void>
Defined in: src/runtime/actors/tool-router-actor.ts:50
Handle one envelope. Called serially — no concurrent invocations.
Parameters
envelope
Returns
Promise<void>