GoogleLLMClient

constructor(settings: GoogleClientSettings = GoogleClientSettings(), httpClient: KoogHttpClient, clock: Clock = Clock.System)(source)

Parameters

settings

Custom client settings, defaults to standard API endpoint and timeouts

httpClient

A preconfigured Koog HTTP client used for API calls. Must have authentication and other request defaults already embedded. To use a Ktor-backed client with standard defaults, use the secondary constructor that accepts an API key and an io.ktor.client.HttpClient.

clock

Clock instance used for tracking response metadata timestamps.


constructor(apiKey: String, settings: GoogleClientSettings = GoogleClientSettings(), baseClient: HttpClient = HttpClient(), clock: Clock = Clock.System)(source)

Secondary constructor for creating a GoogleLLMClient backed with a Ktor HTTP client.

Parameters

apiKey

The API key for the Google AI API

settings

Custom client settings, defaults to standard API endpoint and timeouts

baseClient

Ktor HTTP client used for making API requests.

clock

Clock instance used for tracking response metadata timestamps.