From ee4ab58fbba60478d9519f08fd60ccaa3cc64f75 Mon Sep 17 00:00:00 2001 From: 0007 <0007@qq.com> Date: Wed, 27 Aug 2025 19:57:15 +0800 Subject: [PATCH] Add File --- docs/en/core/memory.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 docs/en/core/memory.md diff --git a/docs/en/core/memory.md b/docs/en/core/memory.md new file mode 100644 index 0000000..4c3ae25 --- /dev/null +++ b/docs/en/core/memory.md @@ -0,0 +1,14 @@ +# Memory + +In Agents-Flex, memory is divided into two types: + +- **ChatMemory**: Used to store conversation content during chat with LLMs. +- **ContextMemory**: Used in the chain of agents, similar to a Key-Value data structure. + +Additionally, Agents-Flex provides default implementation classes for ChatMemory and ContextMemory: + +- **DefaultChatMemory**: Default implementation for storing conversation content. +- **DefaultContextMemory**: Default implementation for the Key-Value data structure. + +By default, These implementations are store data in memory. Users can implement custom ChatMemory and ContextMemory for scenarios requiring message persistence. +