迁移 ConversationSummaryMemory 或 ConversationSummaryBufferMemory
如果您尝试迁移下面列出的旧内存类之一,请遵循本指南:
| 内存类型 | 描述 |
|---|---|
ConversationSummaryMemory | Continually summarizes the conversation history. The summary is updated after each conversation turn. The abstraction returns the summary of the conversation history. |
ConversationSummaryBufferMemory | Provides a running summary of the conversation together with the most recent messages in the conversation under the constraint that the total number of tokens in the conversation does not exceed a certain limit. |
请按照以下 LangGraph 中的摘要操作指南进行作。
本指南介绍如何在丢弃旧消息的同时维护对话的运行摘要,以确保它们在以后的轮次中不会被重新处理。