Skip to content

bodhi-realtime-agent / OrchestratorConfig

Interface: OrchestratorConfig ​

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

Configuration for RuntimeOrchestrator.

Properties ​

adapter ​

adapter: TransportAdapter

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

Transport adapter (Gemini or OpenAI).


agents? ​

optional agents?: AgentDefinition[]

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

Agent definitions for transfer support.


backgroundAgents? ​

optional backgroundAgents?: BackgroundAgent[]

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

User-defined BackgroundAgents to host. Each is started by BackgroundAgentHostActor on the first session.connected envelope (deferred so the first publish lands on a live wire).


backgroundExecutor? ​

optional backgroundExecutor?: SubagentExecutionHandler

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

Optional execution bridge for background subagent workflows.


clientSend ​

clientSend: ClientSendFn

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

Client WebSocket send function.


hooks? ​

optional hooks?: MainAgentHooks

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

Agent lifecycle hooks.


initialAgent? ​

optional initialAgent?: string

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

Initial active agent name.


inlineExecutor ​

inlineExecutor: InlineToolExecutor

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

Inline tool executor callback.


notification? ​

optional notification?: object

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

Optional notification subsystem configuration (NotificationActor + subscribers).

onBackgroundNotification? ​

optional onBackgroundNotification?: OnBackgroundNotificationCallback

Callback invoked by NotificationHooksObserverActor on every delivered notification. Wired by VoiceSession to forward FrameworkHooks.onBackgroundNotification. Omit to disable the observer (orchestrator skips constructing it — zero-overhead).

onTransportDeliver? ​

optional onTransportDeliver?: () => void

Invoked by TransportActor on each notification.delivered envelope before the adapter.sendContent wire-out. Wired by VoiceSession to its response-trigger coordinator so a delivery's model turn can never bind as a live greeting (H1 enforcement).

Returns ​

void

transportSubscriptionFilter? ​

optional transportSubscriptionFilter?: NotificationFilter

Subscription filter for TransportActor (the default subscriber that wraps notification.delivered into [label]: text and writes via adapter.sendContent). Omit to subscribe to all labels.


onTransferRequested? ​

optional onTransferRequested?: (toAgent) => void | Promise<void>

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

Optional transfer callback used by ToolRouterActor for transfer_to_agent.

Parameters ​

toAgent ​

string

Returns ​

void | Promise<void>


reconnectPolicy? ​

optional reconnectPolicy?: Partial<ReconnectPolicy>

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

Reconnect backoff policy.


sessionId? ​

optional sessionId?: string

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

Required so BackgroundAgentContext.sessionId and the onBackgroundNotification event payload carry a stable session id.


tools ​

tools: Map<string, ToolRoutingInfo>

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

Tool routing registry.


upstreamLossHeld? ​

optional upstreamLossHeld?: boolean

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

upstreamLossPolicy: 'hold': a lost upstream is not a session end (see SessionActor).


userId? ​

optional userId?: string

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

User id threaded into BackgroundAgentContext.userId. Defaults to ''.

Built with VitePress