Pipelines
BasePipeline
Abstract base class for all pipeline implementations in Pipecat
Overview
BasePipeline
is the abstract base class that provides core functionality for all pipeline implementations. It extends FrameProcessor
to enable pipelines to be used as components within other pipelines.
Class Definition
Inheritance
Required Methods
processors_with_metrics
List[FrameProcessor]
requiredMust be implemented by subclasses to return a list of processors capable of generating metrics. Used for metrics collection and monitoring.
Frame Processing
Inherits frame processing capabilities from FrameProcessor
:
- Frame direction control
- Single push task rule
- System frame handling
- Error propagation
Usage Example
Notes
- All pipeline implementations must inherit from BasePipeline
- Provides foundation for metrics collection
- Enables pipeline composition
- Maintains frame processing guarantees
- Supports both synchronous and asynchronous processing