-
I have a streaming tool that needs to continuously monitor something for long periods of time, and I was wondering how long the session could remain open for without manual user input as well as whether the time it remains open for counts towards the free tier quota for Gemini Live. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Response from ADK Answering Agent (experimental, answer may be inaccurate) TLDR: There is no specific documentation on a fixed session timeout for a live agent. Sessions are designed to be resumable if they close. The free tier, Vertex AI Express Mode, has limitations and is valid for 90 days. Hello! I can provide some information regarding your questions about live agent sessions. While there is no explicit documentation stating a specific timeout for how long a live agent session can remain open without user input, the system is designed with session management that allows for sessions to be resumed. If a connection is closed, the client can be configured to attempt to reconnect. For instance, some examples show a client attempting to reconnect after 5 seconds [1]. The underlying design indicates that if a session times out, it will close without raising an error [2]. Regarding the free tier, Google offers Vertex AI Express Mode, which provides free access to services like [1] https://github.com/google/adk-docs/blob/main/docs/streaming/custom-streaming-ws.md |
Beta Was this translation helpful? Give feedback.
-
This is depending on the model you choose. For Gemini, audio-only sessions are limited to 12 minutes. Learn more here: https://ai.google.dev/gemini-api/docs/live-session#maximum-session-duration |
Beta Was this translation helpful? Give feedback.
-
Does the ADK support using context window compression and session resumption to extend the active session for an unlimited amount of time? It's crucial the streaming tool remains active at all times, listening for events. Thank you! |
Beta Was this translation helpful? Give feedback.
This is depending on the model you choose. For Gemini, audio-only sessions are limited to 12 minutes. Learn more here: https://ai.google.dev/gemini-api/docs/live-session#maximum-session-duration