is there an equivalent to `on_user_turn_completed`...
# ask-ai
c
is there an equivalent to
on_user_turn_completed
, but for when another agent's turn has been completed?
t
Thanks for reaching out, Nathan. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
There isn't a direct equivalent to on_user_turn_completed for when another agent's turn has finished. However, the on_exit() lifecycle hook does get called when an agent hands control over to another agent within the same session. You can use this for any cleanup or final steps before the handoff. If you’re looking to specifically detect when another agent has finished speaking, that would need some custom logic on your end. Just let me know if you'd like a hand figuring that out—I’m here to help! Sources: Voice pipeline nodes | LiveKit Docs | Pipeline nodes and hooks | LiveKit Docs