API Reference
ChannelBridgeOptions
Defined in: channels/channel-bridge.ts:48
Options for a ChannelBridge. The throttling knobs are forwarded to the dispatcher the bridge creates.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
base | DispatcherRunBase | Shared run config (model, memory, tools, system, …) for every session. | channels/channel-bridge.ts:52 |
capacity? | number | Per-session inbound buffer capacity. See DispatcherOptions.capacity. | channels/channel-bridge.ts:56 |
maxConcurrency? | number | Max runs in flight across all sessions. See DispatcherOptions.maxConcurrency. | channels/channel-bridge.ts:60 |
onError? | (error, sessionId) => void | Observe a run that failed (non-abort). See DispatcherOptions.onError. | channels/channel-bridge.ts:64 |
overflow? | OverflowPolicy<Message> | Inbound overflow policy. See DispatcherOptions.overflow. | channels/channel-bridge.ts:58 |
sessionIdFor? | (message) => string | Map an inbound message to a sessionId. Default defaultSessionId. | channels/channel-bridge.ts:54 |
source | ChannelSource | The transport to connect. | channels/channel-bridge.ts:50 |
supersede? | boolean | Abort the in-flight run when a newer message arrives. See DispatcherOptions.supersede. | channels/channel-bridge.ts:62 |