Ask a question to get started
Enter to send•Shift+Enter new line
ConversationSummaryMemory()
BaseChatMemory
SummarizerMixin
Save context from this conversation to buffer.
Clear memory contents.
Predict a new summary based on the messages and existing summary.
Async return key-value pairs given the text input to the chain.
Async save the context of this chain run to memory.
Async clear memory contents.
Will always return list of memory variables.
Create a ConversationSummaryMemory from a list of messages.
Return history buffer.
Validate that prompt input variables are consistent.
Continually summarizes the conversation history.
The summary is updated after each conversation turn. The implementations returns a summary of the conversation history which can be used to provide context to the model.