thousands-night-79795
07/11/2025, 10:22 AMtall-airline-16756
07/11/2025, 10:22 AMtall-airline-16756
07/11/2025, 10:23 AMupdate_agent(new_agent)
on your AgentSession
to replace the agent and maintain session state.
• Function Tools/Handoffs: Design function tools on your agent that return a different agent instance; this triggers an automatic agent handoff within the session.
• Preserved Context: Session context and history are preserved during agent switches, allowing each agent to have unique configurations (TTS, LLM, plugins, etc.).
You can also dynamically update agent instructions and configurations as needed.
If you need specific code examples or have a particular workflow in mind, please share more details.
Sources: Workflows | LiveKit Docs | examples/voice_agents/toggle_io.py | complex-agents/medical_office_triage/triage.pythousands-night-79795
07/11/2025, 10:24 AMupdate_agent
can not work?tall-airline-16756
07/11/2025, 10:25 AM