identity_filter

Identity filter for transparent frame passthrough.

This module provides a simple passthrough filter that forwards all frames without modification, useful for testing and pipeline composition.

class pipecat.processors.filters.identity_filter.IdentityFilter(**kwargs)[source]

Bases: FrameProcessor

A pass-through filter that forwards all frames without modification.

This filter acts as a transparent passthrough, allowing all frames to flow through unchanged. It can be useful when testing ParallelPipeline to create pipelines that pass through frames (no frames should be repeated).

__init__(**kwargs)[source]

Initialize the identity filter.

Parameters:

**kwargs – Additional arguments passed to the parent FrameProcessor.

async process_frame(frame: Frame, direction: FrameDirection)[source]

Process an incoming frame by passing it through unchanged.

Parameters:
  • frame – The frame to process and forward.

  • direction – The direction of frame flow in the pipeline.