# Package-level declarations

## Types

Gemini
Link copied to clipboard
class Gemini(client: <Error class: unknown class>, val name: String, models: Gemini.GeminiModels = RealGeminiModels(client.models)) : Model

Implementation of Model that interacts with Google Gemini models using the GenAI SDK.

LlmRequest
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.

LlmResponse
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)

LLM response class that provides the first candidate response from the model if available. Otherwise, contains the error code and message.

Model
Link copied to clipboard
interface Model

Interface that provides a common interface for interacting with different LLMs.

VertexCredentials
Link copied to clipboard
data class VertexCredentials(val project: String? = null, val location: String? = null, val credentials: <Error class: unknown class>? = null)

JVM implementation of VertexCredentials.