Removing the UserEndOfTurnFrame

This commit is contained in:
Filipi Fuchter
2025-04-17 17:53:31 -03:00
parent 6e06bf97c0
commit a390ce13a4
2 changed files with 0 additions and 11 deletions

View File

@@ -571,15 +571,6 @@ class EmulateUserStoppedSpeakingFrame(SystemFrame):
pass
@dataclass
class UserEndOfTurnFrame(SystemFrame):
"""Emitted based on the Smart Turn model to indicate that the user has
completed their turn/sentence.
"""
pass
@dataclass
class BotInterruptionFrame(SystemFrame):
"""Emitted by when the bot should be interrupted. This will mainly cause the

View File

@@ -25,7 +25,6 @@ from pipecat.frames.frames import (
StartInterruptionFrame,
StopInterruptionFrame,
SystemFrame,
UserEndOfTurnFrame,
UserStartedSpeakingFrame,
UserStoppedSpeakingFrame,
VADParamsUpdateFrame,
@@ -224,7 +223,6 @@ class BaseInputTransport(FrameProcessor):
async def _handle_end_of_turn_complete(self, state: EndOfTurnState):
if state == EndOfTurnState.COMPLETE:
await self.push_frame(UserEndOfTurnFrame())
await self._handle_user_interruption(UserStoppedSpeakingFrame())
async def _run_turn_analyzer(