In an agent call with livekit - Is there a default...
# ask-ai
f
In an agent call with livekit - Is there a default connection timeout for the agents?
t
Thanks for reaching out, Tushar. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Could you please help me understand a bit better? Are you asking about the timeout for establishing a connection, keeping an active connection, or something else? Also, is this related to a particular SDK or API in LiveKit? I’m here to help you through this!
f
No, Is there any sort of timeout for agents after the agent and user have connected in a room.
t
There isn’t a default timeout set specifically for agents once they’ve connected in a room. However, there are timeouts you can configure for client connections, like websocketTimeout and peerConnectionTimeout, which usually default to 15 seconds each. You can easily adjust these in the SDK settings. If you’re looking for a particular timeout behavior or if anything isn’t clear, please don’t hesitate to reach out—I’m here to help you every step of the way! Sources: livekit-android-sdk/src/main/java/io/livekit/android/audio/PreconnectAudioB... | lib/src/constants.dart | agents/src/types.ts | livekit-agents/livekit/agents/types.py | test/agent_test.go
f
Can you help with this then - My agent disconnected from the room with the reason being "CONNECTION_TIMEOUT". Here is the full event from the lk cloud session logs -
{id: "AE_UwWpzEQ8RuqS"
project_id: "p_4rcxbs9gwp6"
room_id: "RM_n3hLbdf3NT5T"
timestamp: "2025-09-23T09:27:32Z"
type: "Participant left (CONNECTION_TIMEOUT)"
participant_id: "PA_azPTGf3h6VD8"
participant_identity: "agent-AJ_o67QVikeDWE7"
node_id: "NM_OMUMBAI1B_Yb8aXnaToLfk"
timestamp_us: 1758619652993088
disconnect_reason: "CONNECTION_TIMEOUT"
}
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!