salmon-motherboard-10077
08/04/2025, 7:45 AMtall-airline-16756
08/04/2025, 7:45 AMtall-airline-16756
08/04/2025, 7:45 AMagent_name field in the WorkerOptions when registering your agent. This allows you to explicitly assign multiple agents.
2. Dispatch on Participant Connection: Configure the participant's token to dispatch one or more agents upon connection by including multiple RoomAgentDispatch entries in RoomConfiguration.
3. Dispatch via API: Use the AgentDispatchService to dynamically assign agents after a room is created.
4. Multi-Agent Workflows: Implement workflows where agents can hand off sessions based on specific conditions using function tools.
5. Environment and Worker Setup: Ensure all necessary environment variables (e.g., LIVEKIT_URL, LIVEKIT_API_KEY, LIVEKIT_API_SECRET) are configured properly.
These steps allow you to manage and deploy multiple agents effectively, ensuring smooth transitions and maintaining user context throughout the session. Let me know if you need further details or examples!
Sources: Agent dispatch | LiveKit Docs | README.md | Deployment and scaling | LiveKit Docssalmon-motherboard-10077
08/04/2025, 7:48 AMtall-airline-16756
08/04/2025, 7:49 AM