MistralAILLMAutoConfiguration
Auto-configuration class for setting up MistralAI LLM client and related beans. This class utilizes the properties defined in MistralAIKoogProperties to configure and initialize MistralAI-related components, including the client and executor.
The configuration is conditionally applied if the property ai.koog.mistral.api-key is set to true. It reads additional configuration from the properties file located at classpath:/META-INF/config/koog/mistral-llm.properties.
Key Features:
Sets up the MistralAILLMClient bean with API key and base URL from the provided properties.
Configures a SingleLLMPromptExecutor bean using the configured MistralAI client with retry capabilities.
Usage Notes:
To activate, ensure the
ai.koog.mistral.api-keyproperty is defined in your application configuration.Customize behavior and settings using the
ai.koog.mistral.*configuration properties.
See also
Functions
Creates and returns a SingleLLMPromptExecutor bean configured with the given MistralAILLMClient. This bean is conditionally initialized only when an MistralAILLMClient bean is present in the application context.
Creates an MistralAILLMClient bean configured with application properties.