Class InMemoryChatMemoryRepository
java.lang.Object
org.springframework.ai.chat.memory.InMemoryChatMemoryRepository
- All Implemented Interfaces:
ChatMemoryRepository
An in-memory implementation of
ChatMemoryRepository.- Since:
- 1.0.0
- Author:
- Thomas Vitale
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteByConversationId(String conversationId) findByConversationId(String conversationId) voidReplaces all the existing messages for the given conversation ID with the provided messages.
-
Constructor Details
-
InMemoryChatMemoryRepository
public InMemoryChatMemoryRepository()
-
-
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
-