SpringAiChatMemoryAutoConfiguration

@AutoConfiguration(afterName = ["org.springframework.ai.model.chat.memory.repository.cassandra.autoconfigure.CassandraChatMemoryRepositoryAutoConfiguration", "org.springframework.ai.model.chat.memory.repository.cosmosdb.autoconfigure.CosmosDBChatMemoryRepositoryAutoConfiguration", "org.springframework.ai.model.chat.memory.repository.jdbc.autoconfigure.JdbcChatMemoryRepositoryAutoConfiguration", "org.springframework.ai.model.chat.memory.repository.neo4j.autoconfigure.Neo4jChatMemoryRepositoryAutoConfiguration", "org.springframework.ai.model.chat.memory.repository.mongo.autoconfigure.MongoChatMemoryAutoConfiguration"])
@EnableConfigurationProperties(value = [KoogSpringAiChatMemoryProperties::class])
@ConditionalOnClass(value = [ChatMemoryRepository::class])
@ConditionalOnProperty(prefix = "koog.spring.ai.chat-memory", name = ["enabled"], havingValue = "true", matchIfMissing = true)
open class SpringAiChatMemoryAutoConfiguration(source)

Auto-configuration for the Koog Spring AI Chat Memory adapter.

This configuration:

Gated by koog.spring.ai.chat-memory.enabled=true (default).

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
@Configuration(proxyBeanMethods = false)
open class NamedChatMemoryRepositoryConfiguration

Chat memory repository configuration — activated when a bean-name selector property is provided.

Link copied to clipboard
@Configuration(proxyBeanMethods = false)
@ConditionalOnSingleCandidate(value = ChatMemoryRepository::class)
open class SingleChatMemoryRepositoryConfiguration

Chat memory repository configuration — activated when no bean-name selector is set and a single ChatMemoryRepository candidate exists.

Functions

Link copied to clipboard
@Bean
@ConditionalOnMissingBean(name = ["koogSpringAiChatMemoryDispatcher"])
open fun koogSpringAiChatMemoryDispatcher(properties: KoogSpringAiChatMemoryProperties, @Qualifier(value = "applicationTaskExecutor") asyncTaskExecutorProvider: ObjectProvider<AsyncTaskExecutor>): CoroutineDispatcher

Creates a CoroutineDispatcher for blocking Spring AI chat memory repository calls.