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?
optionalagents?:AgentDefinition[]
Defined in: src/runtime/runtime-orchestrator.ts:47
Agent definitions for transfer support.
backgroundAgents?
optionalbackgroundAgents?: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?
optionalbackgroundExecutor?: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?
optionalhooks?:MainAgentHooks
Defined in: src/runtime/runtime-orchestrator.ts:55
Agent lifecycle hooks.
initialAgent?
optionalinitialAgent?: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?
optionalnotification?:object
Defined in: src/runtime/runtime-orchestrator.ts:71
Optional notification subsystem configuration (NotificationActor + subscribers).
onBackgroundNotification?
optionalonBackgroundNotification?: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?
optionalonTransportDeliver?: () =>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?
optionaltransportSubscriptionFilter?: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?
optionalonTransferRequested?: (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?
optionalreconnectPolicy?:Partial<ReconnectPolicy>
Defined in: src/runtime/runtime-orchestrator.ts:51
Reconnect backoff policy.
sessionId?
optionalsessionId?: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?
optionalupstreamLossHeld?:boolean
Defined in: src/runtime/runtime-orchestrator.ts:53
upstreamLossPolicy: 'hold': a lost upstream is not a session end (see SessionActor).
userId?
optionaluserId?:string
Defined in: src/runtime/runtime-orchestrator.ts:63
User id threaded into BackgroundAgentContext.userId. Defaults to ''.