Ask a question to get started
Enter to send•Shift+Enter new line
ConversationSummaryMemory()
BaseChatMemory
SummarizerMixin
The key from the model Run's inputs to use as the eval input.
Async save the context of this chain run to memory.
Async 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.
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.
Save context from this conversation to buffer.
Clear memory contents.
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.