introducing urgent frames

This commit is contained in:
Aleix Conchillo Flaqué
2025-03-31 18:53:59 -07:00
parent 6940112ab9
commit 3efc5fd4a9
3 changed files with 259 additions and 171 deletions

View File

@@ -9,6 +9,7 @@ import unittest
from pipecat.frames.frames import (
EndFrame,
Frame,
StartInterruptionFrame,
TextFrame,
TranscriptionFrame,
UserStartedSpeakingFrame,
@@ -57,8 +58,8 @@ class TestFrameFilter(unittest.IsolatedAsyncioTestCase):
async def test_system_frame(self):
filter = FrameFilter(types=())
frames_to_send = [UserStartedSpeakingFrame()]
expected_down_frames = [UserStartedSpeakingFrame]
frames_to_send = [StartInterruptionFrame()]
expected_down_frames = [StartInterruptionFrame]
await run_test(
filter,
frames_to_send=frames_to_send,