Skip to content

Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.

docs(prompt-guide): document trajectories memory schema (#2282)

Evo92f9612b3803
diff --git a/docs/en/guides/10-prompt-guide.md b/docs/en/guides/10-prompt-guide.md
index 703fbecc2..320da22c0 100644
--- a/docs/en/guides/10-prompt-guide.md
+++ b/docs/en/guides/10-prompt-guide.md
@@ -248,6 +248,12 @@ These YAML files define the structure of different memory types. They are not si
- Purpose: defines the storage structure for tool call statistics and tool-usage experience
- Key fields: `tool_name`, `static_desc`, `call_count`, `success_time`, `when_to_use`, `optimal_params`
+- `trajectories`
+ - Effective stage: agent trajectory memory persistence stage (agent-only, add-only)
+ - Affects: reusable operation contracts distilled from agent task trajectories — multi-step decisions, tool calls, and execution traces
+ - Purpose: defines compact trajectory memory for "what reusable operation/contract emerged from a task trajectory"
+ - Key fields: `trajectory_name`, `outcome`, `retrieval_anchor`, `content`
+
### Parsing
These prompts are mainly used to convert raw resource content into structured nodes, chapters, summaries, or image overviews that are easier to retrieve and understand.
diff --git a/docs/zh/guides/10-prompt-guide.md b/docs/zh/guides/10-prompt-guide.md
index 698011f8d..2d7dd4301 100644
--- a/docs/zh/guides/10-prompt-guide.md
+++ b/docs/zh/guides/10-prompt-guide.md
@@ -248,6 +248,12 @@ operation_mode: "upsert"
- 作用:定义工具调用统计和工具使用经验的存储结构
- 关键字段:`tool_name`、`static_desc`、`call_count`、`success_time`、`when_to_use`、`optimal_params`
+- `trajectories`
+ - 生效环节:agent 轨迹型记忆落盘阶段(agent_only,仅追加)
+ - 影响能力:agent 任务轨迹中可复用的操作契约沉淀——多步决策、工具调用、执行链路
+ - 作用:定义"任务轨迹中提炼出哪些可复用的操作/契约"这一类轨迹型记忆
+ - 关键字段:`trajectory_name`、`outcome`、`retrieval_anchor`、`content`
+
### Parsing
这一类 prompt 主要用于把原始资源内容转成适合检索和理解的结构化节点、章节、摘要或图像概述。