diff --git a/CHANGELOG.md b/CHANGELOG.md index be8cd5641..5df4a88bd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,13 @@ All notable changes to **Pipecat** will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [Unreleased] + +### Added + +- Added a new RTVI message called `disconnect-bot`, which when handled pushes + an `EndFrame` to trigger the pipeline to stop. + ## [0.0.49] - 2024-11-17 ### Added diff --git a/src/pipecat/processors/frameworks/rtvi.py b/src/pipecat/processors/frameworks/rtvi.py index 5764dbc57..4644e748f 100644 --- a/src/pipecat/processors/frameworks/rtvi.py +++ b/src/pipecat/processors/frameworks/rtvi.py @@ -743,6 +743,8 @@ class RTVIProcessor(FrameProcessor): case "update-config": update_config = RTVIUpdateConfig.model_validate(message.data) await self._handle_update_config(message.id, update_config) + case "disconnect-bot": + await self.push_frame(EndFrame()) case "action": action = RTVIActionRun.model_validate(message.data) action_frame = RTVIActionFrame(message_id=message.id, rtvi_action_run=action)