Uses of Interface
dev.langchain4j.memory.ChatMemory
Packages that use ChatMemory
Package
Description
-
Uses of ChatMemory in dev.langchain4j.chain
Methods in dev.langchain4j.chain with parameters of type ChatMemoryModifier and TypeMethodDescriptionConversationalChain.ConversationalChainBuilder.chatMemory
(ChatMemory chatMemory) ConversationalRetrievalChain.Builder.chatMemory
(ChatMemory chatMemory) Constructors in dev.langchain4j.chain with parameters of type ChatMemoryModifierConstructorDescriptionConversationalRetrievalChain
(ChatLanguageModel chatLanguageModel, ChatMemory chatMemory, PromptTemplate promptTemplate, Retriever<TextSegment> retriever) Deprecated, for removal: This API element is subject to removal in a future version.ConversationalRetrievalChain
(ChatLanguageModel chatLanguageModel, ChatMemory chatMemory, ContentRetriever contentRetriever) ConversationalRetrievalChain
(ChatLanguageModel chatLanguageModel, ChatMemory chatMemory, RetrievalAugmentor retrievalAugmentor) -
Uses of ChatMemory in dev.langchain4j.memory.chat
Classes in dev.langchain4j.memory.chat that implement ChatMemoryModifier and TypeClassDescriptionclass
This chat memory operates as a sliding window ofMessageWindowChatMemory.maxMessages
messages.class
This chat memory operates as a sliding window ofTokenWindowChatMemory.maxTokens
tokens.Methods in dev.langchain4j.memory.chat that return ChatMemory -
Uses of ChatMemory in dev.langchain4j.service
Fields in dev.langchain4j.service with type parameters of type ChatMemoryMethods in dev.langchain4j.service that return ChatMemoryMethods in dev.langchain4j.service with parameters of type ChatMemoryModifier and TypeMethodDescriptionAiServices.chatMemory
(ChatMemory chatMemory) Configures the chat memory that will be used to preserve conversation history between method calls. -
Uses of ChatMemory in dev.langchain4j.service.tool
Methods in dev.langchain4j.service.tool with parameters of type ChatMemoryModifier and TypeMethodDescriptionToolService.executeInferenceAndToolsLoop
(ChatResponse chatResponse, ChatRequestParameters parameters, List<ChatMessage> messages, ChatLanguageModel chatModel, ChatMemory chatMemory, Object memoryId, Map<String, ToolExecutor> toolExecutors)
ContentRetriever
instead.