store_memory
Save durable memories—stable preferences, identity facts, project entities, reusable patterns, and solved cases—so agents can recall them across future sessions.
Instructions
Store a durable memory when the user shares a stable preference, identity fact, project entity, reusable pattern, or solved case that should survive future windows. Do not use this for transient task state; use it only for memory worth keeping.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Optional tags | |
| text | Yes | Memory text to store | |
| scope | Yes | Required scope such as project:recallnest or session:abc123 | |
| source | No | How this memory was captured | manual |
| category | No | Durable memory category | events |
| topicTag | No | Optional topic tag for intra-scope partitioning (e.g. 'auth', 'deploy', 'testing'). Auto-detected if omitted. | |
| triggers | No | 写入时预演触发器:这条记忆「她以后会怎么问起」的 2–5 句口语问法,各说一个角度、别互为变体、别复述正文。只参与召回、不进正文。scope 为 memory:pivot 时必填(§5.3)。例:["那个跑分要不要再跑一次", "别人的榜我们要不要也去排个名"] | |
| dependsOn | No | Optional freshness dependencies (borrowed). Declare what this memory depends on so recall shows a cheap validity verdict (exact/compatible/uncertain/invalid). Items: {kind:'file'|'git-rev', ref, expected?}. file → ref=path, expected=mtime-ms string; git-rev → ref=repo path, expected=commit hash (short ok). expected may be an array: first=exact, rest=compatible set. Omit expected for existence-only checks. | |
| eventTime | No | Optional event time: when the event actually happened (ISO date or ms), distinct from storage time. | |
| confidence | No | Optional confidence override: number (0-1) or {score, reliability}. Auto-assigned from source if omitted. | |
| importance | No | Importance score from 0 to 1 | |
| validUntil | No | Optional expiration: ISO date string or ms timestamp. Memory will be deprioritized after this time. | |
| privacyTier | No | Privacy tier: ephemeral (auto-expire, no KG), private (persist, no KG), durable (default), shared (cross-scope) | durable |
| canonicalKey | No | Optional stable key for merge/update semantics |