SpringAiChatAutoConfiguration
Auto-configuration for the Koog Spring AI Chat Model adapter.
This configuration:
Binds KoogSpringAiChatProperties under
koog.spring.ai.chat.*.Creates an LLMClient backed by a Spring AI ChatModel when available.
Creates a PromptExecutor when an LLMClient is available.
Supports multi-model contexts via property-based bean-name selection.
Provides an injectable CoroutineDispatcher for blocking model calls.
Optionally injects ModerationModel into the LLMClient bean.
Gated by koog.spring.ai.chat.enabled=true (default).
Types
Chat model configuration — activated when a bean-name selector is provided.
Chat model configuration — activated when no bean-name selector is set and a single ChatModel candidate exists.
Functions
Creates a MultiLLMPromptExecutor from all available LLMClient beans.
Creates a CoroutineDispatcher for blocking Spring AI chat model calls.