memory_store
Write persistent knowledge from conversations by specifying the type (lesson, decision, or playbook) and content. Automatically routes to the correct storage format.
Instructions
统一知识写入入口 — 根据 kind 自动路由到 add_lesson / add_decision / add_playbook。 Unified knowledge write endpoint — routes to add_lesson / add_decision / add_playbook based on kind.
**Lifecycle: writeback** — 对话中产生值得长期保留的知识时调用。
Lifecycle: writeback — call when the conversation produces knowledge worth persisting.
这是 Provider 兼容的统一写入接口。如果你已经明确知道要写 lesson/decision/playbook,
也可以直接调用对应的专用工具。本工具的优势在于:调用方不需要知道 Engram 内部的分类体系。
This is a provider-compatible unified write interface. You may also call the specialized
tools directly. The advantage here: callers don't need to know Engram's internal taxonomy.
Args:
kind: 知识类型 — 'lesson' | 'decision' | 'playbook'。 / Knowledge type.
content_json: 知识内容 JSON 字符串。格式因 kind 而异:
- lesson: {"summary": "...", "detail": "...", "domain": "..."}
- decision: {"question": "...", "choice": "...", "reasoning": "..."}
- playbook: {"title": "...", "triggers": "...", "steps_json": "[...]"}
Content JSON string. Schema varies by kind (see above).
source_tool: 调用来源工具(可选),如 'claude_code', 'cursor'。 / Source tool (optional).Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| content_json | Yes | ||
| source_tool | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |