DeepSeekLLMAutoConfiguration

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

Auto-configuration class for integrating with the DeepSeek LLM provider within a Spring Boot application.

This configuration enables the auto-wiring of required beans when the appropriate application properties are set. The configuration ensures that the DeepSeekLLMClient is properly initialized and available for usage in the application.

The following conditions must be met for this configuration to be activated:

  • The property ai.koog.deepseek.api-key must be defined in the application configuration.

  • The property ai.koog.deepseek.enabled must have a value of true.

Properties used:

  • ai.koog.deepseek.api-key: API key required to authenticate requests to the DeepSeek API.

  • ai.koog.deepseek.base-url: Base URL of the DeepSeek API, with a default value of https://api.deepseek.com.

  • ai.koog.deepseek.retry: Retry configuration settings for failed requests.

Beans provided:

See also

Constructors

Link copied to clipboard
constructor(properties: DeepSeekKoogProperties)

Functions

Link copied to clipboard

Creates a SingleLLMPromptExecutor bean configured to use the DeepSeek LLM client.

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

Creates a DeepSeekLLMClient bean configured with application properties.