Open Agent Loops
API Reference

ChannelBridge

@open-agent-loops/core


Defined in: channels/channel-bridge.ts:80

Connects a ChannelSource to a Dispatcher. Construct it, then start; stop to tear down.

Constructors

Constructor

new ChannelBridge(options): ChannelBridge;

Defined in: channels/channel-bridge.ts:88

Parameters

ParameterType
optionsChannelBridgeOptions

Returns

ChannelBridge

Methods

flush()

flush(sessionId): void;

Defined in: channels/channel-bridge.ts:119

Send whatever reply text has accumulated for a session right now. Called automatically at each assistant-turn boundary; also exposed so a caller can drive a streaming cadence (e.g. flush every second) if it owns a timer.

Parameters

ParameterTypeDescription
sessionIdstringThe session to flush.

Returns

void


start()

start(): Promise<void>;

Defined in: channels/channel-bridge.ts:103

Start receiving from the source.

Returns

Promise<void>


stop()

stop(): Promise<void>;

Defined in: channels/channel-bridge.ts:108

Stop receiving from the source.

Returns

Promise<void>

Properties

PropertyModifierTypeDescriptionDefined in
dispatcherreadonlyDispatcherThe dispatcher this bridge drives — exposed for stats() / observability.channels/channel-bridge.ts:82

On this page