Class ChatMemoryRemover

java.lang.Object
io.quarkiverse.langchain4j.ChatMemoryRemover

public final class ChatMemoryRemover extends Object
Allows the application to manually control when a ChatMemory should be removed from the underlying ChatMemoryStore.
  • Method Details

    • remove

      public static void remove(Object aiService, Object memoryId)
      Parameters:
      aiService - The bean that implements the AI Service annotated with RegisterAiService
      memoryId - The object used as memory IDs for which the corresponding ChatMemory should be removed
    • remove

      public static void remove(Object aiService, List<Object> memoryIds)
      Parameters:
      aiService - The bean that implements the AI Service annotated with RegisterAiService
      memoryIds - The objects used as memory IDs for which the corresponding ChatMemory should be removed