hi Team, how to detect if agent is idle and discon...
# agents
s
hi Team, how to detect if agent is idle and disconnect the room if user dose not speak for 5 mins?
p
Try #ask-ai
l
In addition to the answer AI gave you, we also have an example for this: https://github.com/livekit/agents/blob/main/examples/voice_agents/inactive_user.py
s
Perfect thank you
s
Hi @straight-lighter-73455 does the room disconnect when you call session.shutdown()? for me only the audio stream was disconnecting but the room was still there. Id appreciate your help