anthropicExecutor

@Bean
@ConditionalOnProperty(prefix = "ai.koog", name = ["anthropic.api-key"])
fun anthropicExecutor(properties: KoogProperties): SingleLLMPromptExecutor(source)

Creates and configures a SingleLLMPromptExecutor using an AnthropicLLMClient. This is conditioned on the presence of an API key in the application properties.

Return

An instance of SingleLLMPromptExecutor configured with AnthropicLLMClient.

Parameters

properties

The configuration properties containing settings for the Anthropic client.