ollamaExecutor

@Bean
@ConditionalOnBean(value = [OllamaClient::class])
fun ollamaExecutor(client: OllamaClient): SingleLLMPromptExecutor(source)

Creates and configures an instance of SingleLLMPromptExecutor that wraps the provided OllamaClient. The configured executor includes retry capabilities based on the application's properties.

Return

a SingleLLMPromptExecutor configured to execute LLM prompts with the provided client.

Parameters

client

the OllamaClient instance used for communicating with the Ollama LLM service.