Wrap the detector chain with `deferred(...)` and append the LLM completion gate via a `UserTurnStrategies` specialization rather than a free-standing helper, mirroring the existing `ExternalUserTurnStrategies` pattern. The class lives next to other strategy containers in `pipecat.turns.user_turn_strategies`, so users discover it where they're already configuring `user_turn_strategies`. The deprecated `filter_incomplete_user_turns` flag now rewires through `FilterIncompleteUserTurnStrategies` under the hood, keeping the migration path identical to before. `deferred(...)` stays public as the explicit escape hatch for non-default compositions.
401 B
401 B
- Added
FilterIncompleteUserTurnStrategiesinpipecat.turns.user_turn_strategies— aUserTurnStrategiesspecialization that wraps the detector chain withdeferred(...)and appendsLLMTurnCompletionUserTurnStopStrategyas the finalizer. Common case:user_turn_strategies=FilterIncompleteUserTurnStrategies(). Passconfig=UserTurnCompletionConfig(...)to customize timeouts and prompts.