Skip to content

bodhi-realtime-agent / RuntimeOrchestrator

Class: RuntimeOrchestrator ​

Defined in: src/runtime/runtime-orchestrator.ts:106

Wires and manages the full actor graph.

Usage:

typescript
const orchestrator = new RuntimeOrchestrator(config);
await orchestrator.start();
// ... runtime operates via adapter callbacks ...
await orchestrator.stop();

Constructors ​

Constructor ​

new RuntimeOrchestrator(config): RuntimeOrchestrator

Defined in: src/runtime/runtime-orchestrator.ts:130

Parameters ​

config ​

OrchestratorConfig

Returns ​

RuntimeOrchestrator

Properties ​

backgroundAgentHost ​

readonly backgroundAgentHost: BackgroundAgentHostActor

Defined in: src/runtime/runtime-orchestrator.ts:122

Hosts user-defined BackgroundAgents. Always constructed (even when no agents are registered) so SessionActor's fan-out envelopes have a live recipient and don't dead-letter.


clientGatewayActor ​

readonly clientGatewayActor: ClientGatewayActor

Defined in: src/runtime/runtime-orchestrator.ts:126


deadLetterQueue ​

readonly deadLetterQueue: DeadLetterQueue

Defined in: src/runtime/runtime-orchestrator.ts:110


mainAgentActor ​

readonly mainAgentActor: MainAgentActor

Defined in: src/runtime/runtime-orchestrator.ts:125


notificationActor ​

readonly notificationActor: NotificationActor

Defined in: src/runtime/runtime-orchestrator.ts:115


notificationHooksObserver ​

readonly notificationHooksObserver: NotificationHooksObserverActor | null

Defined in: src/runtime/runtime-orchestrator.ts:118

Built-in observability subscriber. Constructed only when an onBackgroundNotification callback is configured.


observer ​

readonly observer: RuntimeObserver

Defined in: src/runtime/runtime-orchestrator.ts:109


runtime ​

readonly runtime: ActorRuntime

Defined in: src/runtime/runtime-orchestrator.ts:107


sessionActor ​

readonly sessionActor: SessionActor

Defined in: src/runtime/runtime-orchestrator.ts:114


subagentSupervisor ​

readonly subagentSupervisor: SubagentSupervisorActor

Defined in: src/runtime/runtime-orchestrator.ts:124


supervisor ​

readonly supervisor: Supervisor

Defined in: src/runtime/runtime-orchestrator.ts:108


toolRouterActor ​

readonly toolRouterActor: ToolRouterActor

Defined in: src/runtime/runtime-orchestrator.ts:123


transportActor ​

readonly transportActor: TransportActor

Defined in: src/runtime/runtime-orchestrator.ts:113

Accessors ​

isRunning ​

Get Signature ​

get isRunning(): boolean

Defined in: src/runtime/runtime-orchestrator.ts:283

Whether the orchestrator is running.

Returns ​

boolean

Methods ​

start() ​

start(): Promise<void>

Defined in: src/runtime/runtime-orchestrator.ts:247

Start all actors in dependency order.

Returns ​

Promise<void>


stop() ​

stop(): Promise<void>

Defined in: src/runtime/runtime-orchestrator.ts:276

Stop all actors in reverse order.

Returns ​

Promise<void>

Built with VitePress