从 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 中的以下摘要指南。
本指南展示了如何在保留对话运行摘要的同时丢弃旧消息,确保它们在后续轮次中不会被重新处理。