deprecated UserResponseAggregator
This commit is contained in:
@@ -195,6 +195,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
### Deprecated
|
### Deprecated
|
||||||
|
|
||||||
|
- `UserResponseAggregator` is deprecated and will be removed in a future version.
|
||||||
|
|
||||||
- The `send_transcription_frames` argument to `OpenAIRealtimeLLMService` is
|
- The `send_transcription_frames` argument to `OpenAIRealtimeLLMService` is
|
||||||
deprecated. Transcription frames are now always sent. They go upstream, to be
|
deprecated. Transcription frames are now always sent. They go upstream, to be
|
||||||
handled by the user context aggregator. See "Added" section for details.
|
handled by the user context aggregator. See "Added" section for details.
|
||||||
|
|||||||
@@ -27,11 +27,24 @@ class UserResponseAggregator(LLMUserAggregator):
|
|||||||
def __init__(self, **kwargs):
|
def __init__(self, **kwargs):
|
||||||
"""Initialize the user response aggregator.
|
"""Initialize the user response aggregator.
|
||||||
|
|
||||||
|
.. deprecated:: 0.0.92
|
||||||
|
`UserResponseAggregator` is deprecated and will be removed in a future version.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
**kwargs: Additional arguments passed to parent LLMUserAggregator.
|
**kwargs: Additional arguments passed to parent LLMUserAggregator.
|
||||||
"""
|
"""
|
||||||
super().__init__(context=LLMContext(), **kwargs)
|
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):
|
async def push_aggregation(self):
|
||||||
"""Push the aggregated user response as a TextFrame.
|
"""Push the aggregated user response as a TextFrame.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user