save_memory
Store a plain-text memory fact to persist knowledge; when a dedup_key is supplied, automatically invalidate older matching facts while preserving the audit trail.
Instructions
写入一条记忆事实。content 为明文(人可读)。给定 dedup_key 时,同 (scope,subject,kind,dedup_key) 的旧事实会被自动标记失效(保留审计链)。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | 类型,默认 fact | |
| tags | No | ||
| scope | No | 归属范围:'user'(默认,共享) | 'agent:dsh' | 'project:<key>' | |
| source | No | 来源,默认 agent | |
| content | Yes | 明文事实内容 | |
| subject | No | 归属实体,如 'user'、项目名 | |
| dedup_key | No | 去重/冲突键:同键的新事实使旧事实失效 | |
| confidence | No | ||
| valid_from | No | 生效时间 ISO8601 UTC,默认现在 |