Class JdbcChatMemoryRepository
java.lang.Object
org.springframework.ai.chat.memory.repository.jdbc.JdbcChatMemoryRepository
- All Implemented Interfaces:
ChatMemoryRepository
An implementation of
ChatMemoryRepository for JDBC.- Since:
- 1.0.0
- Author:
- Jonathan Leijendekker, Thomas Vitale, Linar Abzaltdinov, Mark Pollack, Yanming Zhou
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()voiddeleteByConversationId(String conversationId) findByConversationId(String conversationId) voidReplaces all the existing messages for the given conversation ID with the provided messages.
-
Method Details
-
findConversationIds
- Specified by:
findConversationIdsin interfaceChatMemoryRepository
-
findByConversationId
- Specified by:
findByConversationIdin interfaceChatMemoryRepository
-
saveAll
Description copied from interface:ChatMemoryRepositoryReplaces all the existing messages for the given conversation ID with the provided messages.- Specified by:
saveAllin interfaceChatMemoryRepository
-
deleteByConversationId
- Specified by:
deleteByConversationIdin interfaceChatMemoryRepository
-
builder
-