Package-level declarations
Types
Link copied to clipboard
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.
Link copied to clipboard
data class LlmRequest(val model: Model? = null, val contents: List<Content> = emptyList(), val config: GenerateContentConfig = GenerateContentConfig(), toolsDict: List<BaseTool> = emptyList())
LlmRequest represents a request to an LLM.
Link copied to clipboard
data class LlmResponse(val content: Content? = null, val usageMetadata: UsageMetadata? = null, val finishReason: FinishReason? = null, val errorMessage: String? = null, val partial: Boolean = false, val interrupted: Boolean = false, val modelVersion: String? = null, val citationMetadata: CitationMetadata? = null, val groundingMetadata: GroundingMetadata? = null, val errorCode: String? = null, val customMetadata: Map<String, Any?>? = null, val avgLogprobs: Double? = null, val logprobsResult: LogprobsResult? = null)
LLM response class that provides the first candidate response from the model if available. Otherwise, contains the error code and message.
Link copied to clipboard
data class VertexCredentials(val project: String? = null, val location: String? = null, val credentials: GoogleCredentials? = null)
Config for authenticating to Vertex AI when constructing a Gemini model.