diff --git a/CHANGELOG.md b/CHANGELOG.md index f4bd487d1..056c548ca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -195,6 +195,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Deprecated +- `UserResponseAggregator` is deprecated and will be removed in a future version. + - The `send_transcription_frames` argument to `OpenAIRealtimeLLMService` is deprecated. Transcription frames are now always sent. They go upstream, to be handled by the user context aggregator. See "Added" section for details. diff --git a/src/pipecat/processors/aggregators/user_response.py b/src/pipecat/processors/aggregators/user_response.py index 274a31d52..a7872c35e 100644 --- a/src/pipecat/processors/aggregators/user_response.py +++ b/src/pipecat/processors/aggregators/user_response.py @@ -27,11 +27,24 @@ class UserResponseAggregator(LLMUserAggregator): def __init__(self, **kwargs): """Initialize the user response aggregator. + .. deprecated:: 0.0.92 + `UserResponseAggregator` is deprecated and will be removed in a future version. + Args: **kwargs: Additional arguments passed to parent LLMUserAggregator. """ super().__init__(context=LLMContext(), **kwargs) + import warnings + + with warnings.catch_warnings(): + warnings.simplefilter("always") + warnings.warn( + "`UserResponseAggregator` is deprecated and will be removed in a future version.", + DeprecationWarning, + stacklevel=2, + ) + async def push_aggregation(self): """Push the aggregated user response as a TextFrame.