CancelFrame: add reason field to indicate why pipeline is being cancelled

This commit is contained in:
Aleix Conchillo Flaqué
2025-11-01 14:46:46 -07:00
parent 074d3ff162
commit e85e93b9b1
3 changed files with 38 additions and 9 deletions

View File

@@ -5,6 +5,15 @@ 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
- `CancelFrame` and `CancelTaskFrame` have an optional `reason` field to
indicate why the pipeline is being canceled. This can be also specified when
you cancel a task with `PipelineTask.cancel(reason="cancellation your
reason")`.
## [0.0.92] - 2025-10-31 🎃 "The Haunted Edition" 👻
### Added