从 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汇总的指南 操作。
本指南展示了如何在丢弃较早消息的同时保持对话的持续摘要,从而确保这些消息在后续轮次中不会被重新处理。