This commit is contained in:
2025-08-27 19:57:20 +08:00
parent 4f49f8063c
commit 497ea1eb6f

8
docs/zh/core/memory.md Normal file
View File

@@ -0,0 +1,8 @@
# Memory 记忆
在 Agents-Flex 中Memory 分为两种,分别是:
- ChatMemory用于存储大语言模型在对话的过程中对话内容。
- ContextMemory用于在智能体执行链中类似 Map 的 Key-Value 数据数据结构
同时,在 Agents-Flex 中有对 ChatMemory 以及 ContextMemory 的默认实现类,他们分别是 DefaultChatMemory 以及 DefaultContextMemory。
他们默认存储在内存中,用户可以通过去实现 ChatMemory 以及 ContextMemory用于消息持久化的场景。