GoogleLLMClient
constructor(settings: GoogleClientSettings = GoogleClientSettings(), httpClient: KoogHttpClient, clock: KoogClock = KoogClock.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 create a client with standard defaults, use the secondary constructor that accepts an API key and a KoogHttpClient.Factory.
clock
Clock instance used for tracking response metadata timestamps.
constructor(apiKey: String, settings: GoogleClientSettings = GoogleClientSettings(), httpClientFactory: KoogHttpClient.Factory, clock: KoogClock = KoogClock.System)(source)
Secondary constructor for creating a GoogleLLMClient backed by an HTTP client factory.
Parameters
apiKey
The API key for the Google AI API
settings
Custom client settings, defaults to standard API endpoint and timeouts
httpClientFactory
Factory used to create an HTTP client for making API requests.
clock
Clock instance used for tracking response metadata timestamps.