GoogleLLMAutoConfiguration
Provides the auto-configuration for integrating with Google LLM via the Koog framework. This class is responsible for initializing and configuring the necessary beans for interacting with Google's APIs, based on the configurations supplied via GoogleKoogProperties
.
The configuration is activated only when the property ai.koog.google.enabled
is set to true
, and an api-key
is provided.
Beans configured by this class:
GoogleLLMClient: A client for interacting with Google's LLM API, using the specified API key and settings.
SingleLLMPromptExecutor: An executor capable of handling and retrying LLM prompts, using the initialized client.
An external configuration file at classpath:/META-INF/config/koog/google-llm.properties
is leveraged for managing default settings.
See also
Functions
Creates and configures a SingleLLMPromptExecutor instance using GoogleLLMClient properties.
Creates a GoogleLLMClient bean configured with application properties.