Documentation Index
Fetch the complete documentation index at: https://daily-docs-pr-4424.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Overview
ParallelPipeline allows you to create multiple independent processing branches that run simultaneously, sharing input and coordinating output. It’s particularly useful for multi-agent systems, parallel stream processing, and creating redundant service paths.
Each branch receives the same downstream frames, processes them independently, and the results are merged back into a single stream. System frames (like StartFrame and EndFrame) are synchronized across all branches.
Constructor Parameters
Multiple lists of processors, where each list defines a parallel branch. All
branches execute simultaneously when frames flow through the pipeline.
Usage Examples
Multi-Agent Conversation
Create a conversation with two AI agents that can interact with the user independently:Redundant Services with Failover
Set up redundant services with automatic failover:Cross-Branch Communication
Using Producer/Consumer processors to share data between branches:How It Works
ParallelPipelineadds special source and sink processors to each branch- System frames (like
StartFrameandEndFrame) are sent to all branches - Other frames flow downstream to all branch sources
- Results from each branch are collected at the sinks
- The pipeline ensures proper frame ordering:
StartFrameis pushed before any buffered frames (ensuring downstream processors initialize first)EndFrameandCancelFrameare pushed after buffered frames are flushed (ensuring pending work completes before shutdown)