From 53b450c1d1575411b2f18bcd41696777d46e91c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Wed, 24 Dec 2025 10:43:40 -0800 Subject: [PATCH] added changelog entry for user mute strategies --- changelog/3292.added.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 changelog/3292.added.md diff --git a/changelog/3292.added.md b/changelog/3292.added.md new file mode 100644 index 000000000..936d927d8 --- /dev/null +++ b/changelog/3292.added.md @@ -0,0 +1,29 @@ +- Introducing user mute strategies. User mute strategies indicate when user input should be muted based on the current system state. + + In conversational agents, user mute strategies are used to prevent user input from interrupting bot speech, tool execution, or other critical system operations. + + A list of strategies can be specified; all strategies are evaluated for every frame so that each strategy can maintain its internal state. A user frame is muted if any of the configured strategies indicates it should be muted. + + Available user mute strategies: + + * `FirstSpeechUserMuteStrategy` + * `MuteUntilFirstBotCompleteUserMuteStrategy` + * `AlwaysUserMuteStrategy` + * `FunctionCallUserMuteStrategy` + + User mute strategies replace the legacy `STTMuteFilter` and provide a more flexible and composable approach to muting user input. + + User mute strategies are configured when setting up the `LLMContextAggregatorPair`. For example: + + ```python + context_aggregator = LLMContextAggregatorPair( + context, + user_params=LLMUserAggregatorParams( + user_mute_strategies=[ + FirstSpeechUserMuteStrategy(), + ] + ), + ) + ``` + + In order to use user mute strategies you should update to the new universal `LLMContext` and `LLMContextAggregatorPair`.