few-soccer-7112
08/16/2025, 12:28 AMon_user_turn_completed(self, chat_ctx, new_message) is invoked after the final transcript is committed but before the agent repliestall-airline-16756
08/16/2025, 12:28 AMtall-airline-16756
08/16/2025, 12:28 AMon_user_turn_completed(self, chat_ctx, new_message) method kicks in right after the user's final transcript is saved but just before the agent crafts its reply. This gives you a handy chance to tweak the message or context before the agent responds. Pretty neat, right?
Sources: Pipeline nodes and hooks | LiveKit Docs | Voice pipeline nodes | LiveKit Docs | tests/test_agent_session.py | Agent speech and audio | LiveKit Docs