Skip to content

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 ​

InlineToolExecutor

sendMessage ​

ActorSendFn

transportActorId ​

string

subagentSupervisorId ​

string

mainAgentActorId ​

string

onTransferRequested? ​

(toAgent) => void | Promise<void>

Returns ​

ToolRouterActor

Properties ​

id ​

readonly id: string

Defined in: src/runtime/actors/tool-router-actor.ts:35

Unique actor identity.

Implementation of ​

Actor.id

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 ​

Envelope

Returns ​

Promise<void>

Implementation of ​

Actor.onMessage

Built with VitePress