Package-level declarations

Types

Link copied to clipboard
class GoogleClientSettings(val baseUrl: String = "https://generativelanguage.googleapis.com", val timeoutConfig: ConnectionTimeoutConfig = ConnectionTimeoutConfig(), val defaultPath: String = "v1beta/models", val generateContentMethod: String = "generateContent", val streamGenerateContentMethod: String = "streamGenerateContent", val embedContentMethod: String = "embedContent", val batchEmbedContentsMethod: String = "batchEmbedContents", val fallbackThoughtSignature: String = "context_engineering_is_the_way_to_go")

Configuration settings for the Google AI client.

Link copied to clipboard
open class GoogleLLMClient @JvmOverloads constructor(settings: GoogleClientSettings = GoogleClientSettings(), httpClient: KoogHttpClient, clock: KoogClock = KoogClock.System) : LLMClient

Implementation of LLMClient for Google's Gemini API.

Link copied to clipboard

Google Gemini models and their capabilities. See https://ai.google.dev/gemini-api/docs for more information.

Link copied to clipboard
class GoogleParams(temperature: Double? = null, maxTokens: Int? = null, numberOfChoices: Int? = null, speculation: String? = null, schema: LLMParams.Schema? = null, toolChoice: LLMParams.ToolChoice? = null, user: String? = null, additionalProperties: Map<String, JsonElement>? = null, val topP: Double? = null, val topK: Int? = null, val thinkingConfig: GoogleThinkingConfig? = null) : LLMParams

Google Generate API parameters layered on top of LLMParams.

Functions

Link copied to clipboard
fun GoogleLLMClient(apiKey: String, settings: GoogleClientSettings = GoogleClientSettings(), clock: ERROR CLASS: Symbol not found for KoogClock = KoogClock.System): GoogleLLMClient

JVM convenience for constructing GoogleLLMClient without an explicit ai.koog.http.client.KoogHttpClient.Factory: the default factory is resolved at call time from HttpClientFactoryResolver.