damp-belgium-53878
08/06/2025, 12:54 PMtall-airline-16756
08/06/2025, 12:54 PMtall-airline-16756
08/06/2025, 12:54 PMsession.update_agent()
: This is the recommended approach for most use cases. It allows you to maintain a single conversation context while seamlessly transitioning between agents. This method simplifies state management and resource usage. For example, an initial agent can collect user information and then hand off to a specialist agent within the same session.
• Multiple Sessions with One Agent Per Session: Use this approach when agents require isolated configurations or need to run independently. This is suitable for scenarios like parallel processing but can be resource-intensive and requires careful synchronization.
In general, prefer the single session approach unless you have specific requirements for isolation or parallel execution.
Sources: Workflows | LiveKit Docs | README.md