Bridges
Bridges connect your nodes to the event system.
What is a Bridge?
Bridges are event transport that sit between the Nodes and the Bus. Messages are received and sent on the Bridge.
You can subscribe to specific event types on a Bridge and execute actions when those events occur. When subscribing to an event type, you create a Route, which runs when an event of that type is received on the bridge.
Basic Example
Key Concepts
Event Patterns: Patterns that match events (e.g., UserTranscriptionReceived
, ToolCall
, "*"
for all events).
Actions: What to do when an event matches (e.g., call a node method, transform data, broadcast new events).
Filtering: Additional criteria for when routes should trigger (source, event properties, custom functions).