Package-level declarations
Types
A user turn, or the function responses that answer the model's calls.
On JVM and Android, ADK credentials are the Java Auth Library's GoogleCredentials.
ADK-owned handle to Google Cloud credentials for Vertex AI (see VertexCredentials). On JVM and Android it is a typealias for com.google.auth.oauth2.GoogleCredentials; toGenaiSdk bridges it to the GenAI SDK.
An open bidirectional (live) connection to a model, obtained from Model.connect.
What one live request sends to the model: a ContentInput turn or a RealtimeInput.
What a Model supports, as it reports through Model.capabilities.
LlmRequest represents a request to an LLM.
LLM response class that provides the first candidate response from the model if available. Otherwise, contains the error code and message.
A Model that opens live connections to model ahead of time so connect can take an already-open connection (a spare) instead of waiting for a new session. Spares open without a system instruction or tools and receive them during connect via LiveConnection.sendContextUpdate, so prewarming works only with models whose live connections accept context updates, such as Gemini 3.x Live models. On other models, such as Gemini 2.5 Live models, a connect call that takes a spare fails when the server ends the session with an error (1007) after the update, unless updateCheckWindow is set, in which case the pool detects the refusal on Gemini spares, keeps no spares, and falls back to opening a new connection for every connect call.
Input streamed to a live model outside the turn-by-turn content exchange.
Aggregates partial streaming responses into a single, cohesive response.
Headers that let Google APIs attribute model calls to ADK, in the format all ADK SDKs use. A header value is a space-separated list of name/version tags.
Config for authenticating to Vertex AI when constructing a Gemini model.