update_memory
Modify existing memories by updating content or metadata. Specify memory_id with optional new text or metadata fields; unchanged fields remain intact. Use for corrections or enriching past records.
Instructions
Modify an existing memory's content or metadata. Use for corrections or adding context to existing memories. Fails if memory_id not found. Prefer add_memory for new content. Invalidates search cache. Returns: updated Memory object. Side effects: modifies memory record, invalidates cached search results.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | No | New content to replace existing. Omit to keep current content unchanged. | |
| user_id | No | User namespace. Must match original. Default: "oliver". | |
| metadata | No | Metadata fields to merge. Existing fields not specified are preserved. Pass null value to remove a field. | |
| memory_id | Yes | Unique identifier of the memory to update. Must exist or operation fails with error. |