null_filter
Null filter processor for blocking frame transmission.
This module provides a frame processor that blocks all frames except system and end frames, useful for testing or temporarily stopping frame flow in a pipeline.
- class pipecat.processors.filters.null_filter.NullFilter(**kwargs)[source]
Bases:
FrameProcessorA filter that blocks all frames except system and end frames.
This processor acts as a null filter, preventing frames from passing through the pipeline while still allowing essential system and end frames to maintain proper pipeline operation.
- __init__(**kwargs)[source]
Initialize the null filter.
- Parameters:
**kwargs – Additional arguments passed to parent FrameProcessor.
- async process_frame(frame: Frame, direction: FrameDirection)[source]
Process incoming frames, only allowing system and end frames through.
- Parameters:
frame – The frame to process.
direction – The direction of frame flow in the pipeline.