if you use the agent workflow handoff to a new age...
# ask-ai
p
if you use the agent workflow handoff to a new agent, does this create a new Openai Realtime connection and session
t
Thanks for reaching out, Scott. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
When you hand off the workflow to a new agent, a new OpenAI Realtime connection and session get created. This happens because a new
Agent
instance is set up, which then starts its own
RealtimeSession
through the related
RealtimeModel
. So, each handoff begins with a fresh session—unless you choose to pass the previous session's context along to the new agent. Sources: Workflows | LiveKit Docs | tests/test_evals.py | examples/src/realtime_turn_detector.ts | Workflows | LiveKit Docs