ollamaExecutor

@Bean
@ConditionalOnProperty(prefix = "ai.koog", name = ["ollama"])
fun ollamaExecutor(properties: KoogProperties): SingleLLMPromptExecutor(source)

Creates and configures a SingleLLMPromptExecutor instance using Ollama properties.

The method initializes an OllamaClient with the base URL derived from the provided KoogProperties and uses it to construct the SingleLLMPromptExecutor.

Return

a SingleLLMPromptExecutor configured to use the Ollama client.

Parameters

properties

the configuration properties containing Ollama client settings such as the base URL.