GoogleLLMClient
Implementation of LLMClient for Google's Gemini API.
This client supports both standard and streaming text generation with optional tool calling capabilities.
Parameters
Custom client settings, defaults to standard API endpoint and timeouts
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 instance used for tracking response metadata timestamps.
Constructors
Secondary constructor for creating a GoogleLLMClient backed with a Ktor HTTP client.
Properties
Functions
Moderates the given prompt using the specified language model. This method is not supported by the Google API and will throw an exception when invoked.