bodhi-realtime-agent / SubagentSupervisorActor
Class: SubagentSupervisorActor
Defined in: src/runtime/actors/subagent-supervisor-actor.ts:47
Lifecycle hooks + message handler for an actor.
Implements
Constructors
Constructor
new SubagentSupervisorActor(
id,sendMessage,transportActorId,sessionActorId,executionHandler?):SubagentSupervisorActor
Defined in: src/runtime/actors/subagent-supervisor-actor.ts:52
Parameters
id
string
sendMessage
ActorSendFn
transportActorId
string
sessionActorId
string
executionHandler?
SubagentExecutionHandler
Returns
SubagentSupervisorActor
Properties
id
readonlyid:string
Defined in: src/runtime/actors/subagent-supervisor-actor.ts:48
Unique actor identity.
Implementation of
Accessors
activeWorkflowCount
Get Signature
get activeWorkflowCount():
number
Defined in: src/runtime/actors/subagent-supervisor-actor.ts:304
Get the number of active workflows (for observability).
Returns
number
Methods
getWorkflowState()
getWorkflowState(
toolCallId):"completed"|"cancelled"|"failed"|"running"|"pending"|"waiting_input"|undefined
Defined in: src/runtime/actors/subagent-supervisor-actor.ts:314
Get the state of a workflow.
Parameters
toolCallId
string
Returns
"completed" | "cancelled" | "failed" | "running" | "pending" | "waiting_input" | undefined
hasWorkflow()
hasWorkflow(
toolCallId):boolean
Defined in: src/runtime/actors/subagent-supervisor-actor.ts:309
Check if a workflow exists for the given tool call.
Parameters
toolCallId
string
Returns
boolean
onMessage()
onMessage(
envelope):Promise<void>
Defined in: src/runtime/actors/subagent-supervisor-actor.ts:62
Handle one envelope. Called serially — no concurrent invocations.
Parameters
envelope
Returns
Promise<void>