更新用户认知记忆
cognitive_updateUpdate an existing cognitive memory's selected fields (content, type, scope, confidence, domain, flags) by ID. Unchanged fields persist; error if ID not found.
Instructions
更新一条已存在的记忆的部分字段。找不到该记忆时返回错误。
Args:
memory_id (string): 要更新的记忆 ID(可从 cognitive_search / cognitive_list 获取)
content / type / scope / confidence / domain / is_dynamic / pending_follow_up: 需要更新的字段
Returns: { "success": boolean, "memory": { 更新后的完整条目 } 或 null }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | 新的内容类型 | |
| scope | No | 新的场景标签 | |
| domain | No | 新的主域 | |
| content | No | 新的记忆内容 | |
| memory_id | Yes | 要更新的记忆 ID | |
| confidence | No | 新的置信度 | |
| is_dynamic | No | 是否动态内容 | |
| pending_follow_up | No | 是否有待跟进事项 |