empty_timeout vs departure_timeout in livekit-agen...
# ask-ai
b
empty_timeout vs departure_timeout in livekit-agents
t
Thanks for reaching out, 최윤지. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
empty_timeout and departure_timeout in livekit-agents control different phases of a room's lifecycle: • empty_timeout: Determines how long a newly created room will remain open if no participants join. If the room stays empty for this duration, it will be closed automatically. Default is typically 300 seconds (5 minutes). • departure_timeout: Determines how long the room will remain open after the last participant leaves. This allows for quick reconnections or late joiners before the room is closed. Default is typically 20 seconds. Both settings are configurable and help manage server resources by cleaning up unused rooms at the appropriate times. Sources: livekit-protocol/src/livekit.rs | livekit-rtc/livekit/rtc/room.py | pkg/config/config.go | cmd/lk/room.go
b
Does the agent count as a participant?
t
I don't have the answer you're looking for. You could also try asking your question: • in one of the other Slack channels or • to https://deepwiki.com/livekit/livekit_composite which is trained on all LiveKit source code If you find the answer, please post it here to help others!