MistralAILLMAutoConfiguration

@AutoConfiguration
@PropertySource(value = ["classpath:/META-INF/config/koog/mistral-llm.properties"])
@EnableConfigurationProperties(value = [MistralAIKoogProperties::class])
class MistralAILLMAutoConfiguration(properties: MistralAIKoogProperties)(source)

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:

Usage Notes:

  • To activate, ensure the ai.koog.mistral.api-key property is defined in your application configuration.

  • Customize behavior and settings using the ai.koog.mistral.* configuration properties.

See also

Constructors

Link copied to clipboard
constructor(properties: MistralAIKoogProperties)

Functions

Link copied to clipboard

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.

Link copied to clipboard
@Bean
@ConditionalOnProperty(prefix = "ai.koog.mistral", name = ["enabled"], havingValue = "true")
fun mistralAILLMClient(): MistralAILLMClient

Creates an MistralAILLMClient bean configured with application properties.