> Is there a separate event (e.g. `conversation...
# ask-ai
l
Is there a separate event (e.g.
conversation_item_committed
or
conversation_turn_committed
) that fires once the agent’s full LLM response is finalized — even if TTS is interrupted — and how can we listen to it?
Goal: If such an event exists, it would be better than manually using
session.history[-1]
. We could attach a listener and always publish the full text to the frontend when the assistant’s turn is done.
t
Thanks for reaching out, Computer. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
It sounds like you’re asking if there’s a “finalized” event you can rely on instead of reading
session.history[-1]
. • Use
conversation_item_added
. This fires when a chat item is committed to history. Filter for items with
role == "agent"
and use the event’s
item
to get the finalized assistant text. This is independent of TTS interruptions and is the right hook for “assistant turn done” behavior. See: Events and error handling. • Avoid relying on
speech_created
for this—it indicates audio creation/playout, not text commit. Same doc: Events and error handling. • If you’re using a realtime model provider and want model-level “completion done” signals, you can also listen to the provider’s realtime completion events (e.g.,
ResponseTextDoneEvent
/
ResponseDoneEvent
). Reference: Real-time AI Models & Streaming. Would you like a code snippet to subscribe to
conversation_item_added
in your SDK (Node or Python)? Sources: Events and error handling | LiveKit docs | Real-time AI Models & Streaming | livekit/livekit_composite | DeepWiki