Revert "fix context order when using interruption strategies"
This reverts commit de8ee96927.
This commit is contained in:
@@ -849,15 +849,13 @@ class FrameProcessorResumeUrgentFrame(SystemFrame):
|
||||
class InterruptionFrame(SystemFrame):
|
||||
"""Frame indicating user started speaking (interruption detected).
|
||||
|
||||
Usually emitted by the pipeline task to indicate that all frame processors
|
||||
should be interrrupted.
|
||||
|
||||
Parameters:
|
||||
pushed_by_task: Whether this interruption was pushed from the pipeline
|
||||
task.
|
||||
Emitted by the BaseInputTransport to indicate that a user has started
|
||||
speaking (i.e. is interrupting). This is similar to
|
||||
UserStartedSpeakingFrame except that it should be pushed concurrently
|
||||
with other frames (so the order is not guaranteed).
|
||||
"""
|
||||
|
||||
pushed_by_task: bool = False
|
||||
pass
|
||||
|
||||
|
||||
@dataclass
|
||||
@@ -888,17 +886,6 @@ class StartInterruptionFrame(InterruptionFrame):
|
||||
)
|
||||
|
||||
|
||||
@dataclass
|
||||
class InterruptionCompletedFrame(SystemFrame):
|
||||
"""Frame indicating that the whole pipeline has been interrupted.
|
||||
|
||||
This is emitted by the pipeline task when an InterruptionFrame has made it
|
||||
all the way to the end of pipeline, interrupting all the frame processors.
|
||||
"""
|
||||
|
||||
pass
|
||||
|
||||
|
||||
@dataclass
|
||||
class UserStartedSpeakingFrame(SystemFrame):
|
||||
"""Frame indicating user has started speaking.
|
||||
|
||||
Reference in New Issue
Block a user