when working with a multi-agent session where ther...
# ask-ai
c
when working with a multi-agent session where there are handoffs, what is the best practice to still be listening to the on_conversation_item event? Should this be listened to by the agent class, or something else?
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.
Hey there! Could you help me understand how your multi-agent session is set up? Like, are you using one centralized listener or separate listeners for each agent? Also, are you running into any tricky spots with the on_conversation_item event during handoffs? I’m here to help!
c
currently I'm having listeners on the agent itself, but worried that during the transition, it'll miss some events during the time between the on_exit and on_enter of the two transitioning agents, so wondering if there are examples/patterns I could look at to make this smoother
t
I don't have the answer you're looking for. You could also try asking your question: • in one of the other Slack channels or • to https://deepwiki.com/livekit/livekit_composite which is trained on all LiveKit source code If you find the answer, please post it here to help others!