frames: BotInterruptionFrame is deprecated, use InterruptionTaskFrame

This commit is contained in:
Aleix Conchillo Flaqué
2025-09-08 19:26:28 -07:00
parent 9d9f10ae0e
commit 8249b014f0
16 changed files with 81 additions and 56 deletions

View File

@@ -21,9 +21,9 @@ from typing import List, Optional
from loguru import logger
from pipecat.frames.frames import (
BotInterruptionFrame,
EndFrame,
Frame,
InterruptionTaskFrame,
LLMFullResponseEndFrame,
LLMFullResponseStartFrame,
LLMTextFrame,
@@ -360,7 +360,7 @@ class ClassificationProcessor(FrameProcessor):
await self._voicemail_notifier.notify() # Clear buffered TTS frames
# Interrupt the current pipeline to stop any ongoing processing
await self.push_frame(BotInterruptionFrame(), FrameDirection.UPSTREAM)
await self.push_frame(InterruptionTaskFrame(), FrameDirection.UPSTREAM)
# Set the voicemail event to trigger the voicemail handler
self._voicemail_event.clear()