fix context order when using interruption strategies

This commit is contained in:
Aleix Conchillo Flaqué
2025-10-06 14:58:47 -07:00
parent 2576d0f340
commit de8ee96927
7 changed files with 59 additions and 15 deletions

View File

@@ -5,6 +5,7 @@
#
import json
import sys
import unittest
from typing import Any
@@ -20,6 +21,7 @@ from pipecat.frames.frames import (
FunctionCallResultFrame,
FunctionCallResultProperties,
InterimTranscriptionFrame,
InterruptionCompletedFrame,
InterruptionFrame,
InterruptionTaskFrame,
LLMFullResponseEndFrame,
@@ -568,6 +570,7 @@ class BaseTestUserContextAggregator:
BotStartedSpeakingFrame,
UserStartedSpeakingFrame,
InterruptionFrame,
InterruptionCompletedFrame,
UserStoppedSpeakingFrame,
*self.EXPECTED_CONTEXT_FRAMES,
]