openAIExecutor

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

Provides a bean of type SingleLLMPromptExecutor configured for OpenAI interaction. The bean will only be instantiated if the property ai.koog.openai.api-key is defined in the application properties.

Return

An instance of SingleLLMPromptExecutor initialized with the OpenAI client.

Parameters

properties

The configuration properties containing OpenAI-specific client settings such as API key and base URL.