rsi_knowledge_update
Update an existing memory in place by id to change its title, content, tags, or conditions instead of creating duplicates; merge mode combines near-duplicates, keeps the fuller entry, and archives the rest.
Instructions
Update an existing memory in place by id (title/content/tags/roles/domain/description/trigger_condition/expiry_condition) — prefer updating over re-adding duplicates. action=merge combines near-duplicates: keep the more complete one, archive the rest (recoverable, not hard-deleted) and record a supersedes edge. Preserves id and location. 按 id 原地更新已有记忆(改 title/content/tags/roles/domain/description/前提与失效条件),改优于新建重复。action=merge 合并近重复:保留更完整者、其余归档(可恢复非硬删)并写 supersedes 边;保留 id 与所在目录。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | update 必填:目标条目 id | |
| ids | No | merge 必填:待合并的条目 id(≥2) | |
| tags | No | 标签(整体替换) | |
| roles | No | 适用角色(整体替换) | |
| title | No | 新标题(≤120 字) | |
| action | No | update=按 id 原地改字段(默认);merge=合并近重复 | |
| domain | No | 领域/板块 | |
| content | No | 新正文(短知识≤1500,案例类≤20000) | |
| keep_id | No | merge 可选:指定保留者;缺省自动取正文最长/最新的一条 | |
| description | No | 一句话简述 | |
| expiry_condition | No | 失效条件 | |
| trigger_condition | No | 前提条件 |