fierce-jordan-44682
09/04/2025, 3:23 PMtall-airline-16756
09/04/2025, 3:23 PMtall-airline-16756
09/04/2025, 3:24 PMfierce-jordan-44682
09/04/2025, 3:24 PMtall-airline-16756
09/04/2025, 3:25 PMentrypoint function, keep an eye on whether participants show up.
• Set a timeout you like (say, 10 seconds) using async tools like asyncio.wait_for() around ctx.wait_for_participant().
• If no one joins before the timeout, the agent can gracefully disconnect itself with ctx.shutdown().
Oh, and there’s also a handy server-side setting called empty_timeout that can automatically close rooms with no participants after a certain time, which will disconnect any agents hanging around too.
Sources: Voice Assistants | livekit/livekit_composite | DeepWiki | agent-console/components/no-agent-notification.tsx | Web and mobile frontends | LiveKit Docs | livekit-protocol/src/livekit.rs | protobufs/livekit_room.proto