diff --git a/docs/frame.md b/docs/frame.md index 9026f30c1..7f50ffe62 100644 --- a/docs/frame.md +++ b/docs/frame.md @@ -96,9 +96,6 @@ Notable control frames: ## 7. Special Purpose Frames -### AppFrame -Base class for application-specific custom frames. - ### MetricsFrame Contains performance metrics data. diff --git a/examples/foundational/05-sync-speech-and-image.py b/examples/foundational/05-sync-speech-and-image.py index 5477d0691..64f85930b 100644 --- a/examples/foundational/05-sync-speech-and-image.py +++ b/examples/foundational/05-sync-speech-and-image.py @@ -12,7 +12,7 @@ import sys from dataclasses import dataclass from pipecat.frames.frames import ( - AppFrame, + DataFrame, Frame, LLMFullResponseStartFrame, LLMMessagesFrame, @@ -42,7 +42,7 @@ logger.add(sys.stderr, level="DEBUG") @dataclass -class MonthFrame(AppFrame): +class MonthFrame(DataFrame): month: str def __str__(self): diff --git a/src/pipecat/frames/frames.py b/src/pipecat/frames/frames.py index b99a7307c..17059700a 100644 --- a/src/pipecat/frames/frames.py +++ b/src/pipecat/frames/frames.py @@ -243,16 +243,6 @@ class TransportMessageFrame(DataFrame): return f"{self.name}(message: {self.message})" -# -# App frames. Application user-defined frames. -# - - -@dataclass -class AppFrame(Frame): - pass - - # # System frames # diff --git a/src/pipecat/processors/filters/frame_filter.py b/src/pipecat/processors/filters/frame_filter.py index f4c4b0f61..11f2e601a 100644 --- a/src/pipecat/processors/filters/frame_filter.py +++ b/src/pipecat/processors/filters/frame_filter.py @@ -6,7 +6,7 @@ from typing import Tuple, Type -from pipecat.frames.frames import AppFrame, ControlFrame, Frame, SystemFrame +from pipecat.frames.frames import ControlFrame, Frame, SystemFrame from pipecat.processors.frame_processor import FrameDirection, FrameProcessor @@ -23,11 +23,7 @@ class FrameFilter(FrameProcessor): if isinstance(frame, self._types): return True - return ( - isinstance(frame, AppFrame) - or isinstance(frame, ControlFrame) - or isinstance(frame, SystemFrame) - ) + return isinstance(frame, ControlFrame) or isinstance(frame, SystemFrame) async def process_frame(self, frame: Frame, direction: FrameDirection): await super().process_frame(frame, direction)