Tears down the session's server-side channels (RealtimeChannelServerHost.OnSessionClosed).
Never throws.
The session whose channels to close.
Routes ONE server-channel tool call to the session's owning channel and returns its result. Bound
by the runner-constructing layer to the runner's ExecuteServerChannelTool hook. Never throws —
an unowned tool / unknown session / throwing channel resolves to { Success: false }.
The session the tool call belongs to.
The full (prefixed) tool name the model invoked.
The raw arguments JSON the model emitted.
Returns the aggregated server-executed tool definitions every live channel of the session
contributes (the per-session server-channel tool vocabulary the runner registers as
ServerChannelTools). [] for an unknown session or one with no contributing channels.
The session whose channels' tools to collect.
Starts the session's server-side channels. The host registers the session with the channel
plane (RealtimeChannelServerHost.OnSessionStarted) and, when an IBridgeMeetingControlsEventSource
is supplied, constructs + registers a MeetingControlsChannelServer bound to it, feeding the
supplied sendContextNote perception sink into the channel context.
Never throws to the engine — a channel-plane failure must not break a live bridged session.
The MJ: AI Agent Sessions row id whose channels to start.
The driver's Meeting Controls event source, or null when the driver
contributes none.
OptionalsendContextNote: (text: string) => voidThe runner session's perception sink (IRealtimeSession.SendContextNote),
or undefined when the provider can't inject mid-session — channels degrade gracefully.
The minimal, session-scoped view of the realtime runner's server-side channel plane that import('./index').AIBridgeEngine needs to wire a bridged session's channels — declared here (not imported from
@memberjunction/ai-agents) so the bridge-server engine does not take a heavy dependency on the agents package. The runner-constructing layer (which already depends on@memberjunction/ai-agents) supplies an adapter binding these toRealtimeChannelServerHost.OnSessionStarted/GetSessionServerTools/ExecuteSessionServerTool/OnSessionClosedand constructs the per-sessionMeetingControlsChannelServerfrom a driver's IBridgeMeetingControlsEventSource.The engine calls StartSessionChannels at connect (passing the driver's optional Meeting Controls event source + the runner session's perception sink), then reads GetSessionServerTools / routes ExecuteSessionServerTool, and calls CloseSessionChannels at teardown.