Class ChatMemoryService

java.lang.Object
dev.langchain4j.service.memory.ChatMemoryService

public class ChatMemoryService extends Object
  • Field Details

  • Constructor Details

    • ChatMemoryService

      public ChatMemoryService(ChatMemoryProvider chatMemoryProvider)
    • ChatMemoryService

      public ChatMemoryService(dev.langchain4j.memory.ChatMemory chatMemory)
  • Method Details

    • getOrCreateChatMemory

      public dev.langchain4j.memory.ChatMemory getOrCreateChatMemory(Object memoryId)
    • getChatMemory

      public dev.langchain4j.memory.ChatMemory getChatMemory(Object memoryId)
    • evictChatMemory

      public dev.langchain4j.memory.ChatMemory evictChatMemory(Object memoryId)
    • clearAll

      public void clearAll()
    • getChatMemoryIDs

      public Collection<Object> getChatMemoryIDs()
    • getChatMemories

      public Collection<dev.langchain4j.memory.ChatMemory> getChatMemories()