Class TablestoreChatMemoryStore

java.lang.Object
dev.langchain4j.store.memory.chat.tablestore.TablestoreChatMemoryStore
All Implemented Interfaces:
dev.langchain4j.store.memory.chat.ChatMemoryStore

public class TablestoreChatMemoryStore extends Object implements dev.langchain4j.store.memory.chat.ChatMemoryStore
  • Constructor Details

    • TablestoreChatMemoryStore

      public TablestoreChatMemoryStore(com.alicloud.openservices.tablestore.SyncClient client)
    • TablestoreChatMemoryStore

      public TablestoreChatMemoryStore(com.alicloud.openservices.tablestore.SyncClient client, String tableName, String pkName1, String pkName2, String chatMessageFieldName)
  • Method Details

    • init

      public void init()
    • clear

      public void clear()
      Clear all message.
    • getMessages

      public List<dev.langchain4j.data.message.ChatMessage> getMessages(Object memoryId)
      Specified by:
      getMessages in interface dev.langchain4j.store.memory.chat.ChatMemoryStore
    • updateMessages

      public void updateMessages(Object memoryId, List<dev.langchain4j.data.message.ChatMessage> messages)
      Specified by:
      updateMessages in interface dev.langchain4j.store.memory.chat.ChatMemoryStore
    • deleteMessages

      public void deleteMessages(Object memoryId)
      Specified by:
      deleteMessages in interface dev.langchain4j.store.memory.chat.ChatMemoryStore