frames: add QueueTaskFrame

This commit is contained in:
Aleix Conchillo Flaqué
2025-12-30 15:15:04 -08:00
parent fd2efb3b3a
commit bd7b24596e

View File

@@ -1653,6 +1653,18 @@ class InterruptionTaskFrame(TaskFrame):
pass
@dataclass
class QueueTaskFrame(TaskFrame):
"""Frame to request the pipeline task to push the included frames.
This is useful when you want the push frames from upstream down to the
pipeline. Pushing this frame upstream guarantees upstream frame ordering.
"""
frames: Sequence[Frame]
@dataclass
class BotInterruptionFrame(InterruptionTaskFrame):
"""Frame indicating the bot should be interrupted.