Class TablestoreChatMemoryStore
java.lang.Object
dev.langchain4j.store.memory.chat.tablestore.TablestoreChatMemoryStore
- All Implemented Interfaces:
ChatMemoryStore
-
Constructor Summary
ConstructorsConstructorDescriptionTablestoreChatMemoryStore(com.alicloud.openservices.tablestore.SyncClient client) TablestoreChatMemoryStore(com.alicloud.openservices.tablestore.SyncClient client, String tableName, String pkName1, String pkName2, String chatMessageFieldName) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clear all message.voiddeleteMessages(Object memoryId) getMessages(Object memoryId) voidinit()voidupdateMessages(Object memoryId, List<ChatMessage> messages)
-
Constructor Details
-
TablestoreChatMemoryStore
public TablestoreChatMemoryStore(com.alicloud.openservices.tablestore.SyncClient client) -
TablestoreChatMemoryStore
-
-
Method Details
-
init
public void init() -
clear
public void clear()Clear all message. -
getMessages
- Specified by:
getMessagesin interfaceChatMemoryStore
-
updateMessages
- Specified by:
updateMessagesin interfaceChatMemoryStore
-
deleteMessages
- Specified by:
deleteMessagesin interfaceChatMemoryStore
-