Package dev.langchain4j.service.memory
Class ChatMemoryService
java.lang.Object
dev.langchain4j.service.memory.ChatMemoryService
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionChatMemoryService(ChatMemoryProvider chatMemoryProvider) ChatMemoryService(dev.langchain4j.memory.ChatMemory chatMemory) -
Method Summary
Modifier and TypeMethodDescriptionvoidclearAll()dev.langchain4j.memory.ChatMemoryevictChatMemory(Object memoryId) Collection<dev.langchain4j.memory.ChatMemory> dev.langchain4j.memory.ChatMemorygetChatMemory(Object memoryId) dev.langchain4j.memory.ChatMemorygetOrCreateChatMemory(Object memoryId)
-
Field Details
-
DEFAULT
- See Also:
-
-
Constructor Details
-
ChatMemoryService
-
ChatMemoryService
public ChatMemoryService(dev.langchain4j.memory.ChatMemory chatMemory)
-
-
Method Details
-
getOrCreateChatMemory
-
getChatMemory
-
evictChatMemory
-
clearAll
public void clearAll() -
getChatMemoryIDs
-
getChatMemories
-