Uses of Interface
dev.langchain4j.memory.ChatMemory
-
Uses of ChatMemory in dev.langchain4j.chain
Modifier and TypeMethodDescriptionConversationalChain.ConversationalChainBuilder.chatMemory
(ChatMemory chatMemory) ConversationalRetrievalChain.Builder.chatMemory
(ChatMemory chatMemory) ModifierConstructorDescriptionConversationalRetrievalChain
(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
Modifier 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. -
Uses of ChatMemory in dev.langchain4j.service
Modifier and TypeMethodDescriptionAiServices.chatMemory
(ChatMemory chatMemory) Configures the chat memory that will be used to preserve conversation history between method calls.
ContentRetriever
instead.