memory_update
Modify existing stored information by updating content, metadata, or tags to maintain accurate and current data records.
Instructions
Update an existing memory. Only provided fields are updated.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| memory_id | Yes | ||
| content | No | ||
| metadata | No | ||
| tags | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- memora/server.py:824-839 (handler)Tool handler for 'memory_update' which updates an existing memory entry. It uses an internal _update_memory function and then schedules a cloud graph sync.
async def memory_update( memory_id: int, content: Optional[str] = None, metadata: Optional[Dict[str, Any]] = None, tags: Optional[list[str]] = None, ) -> Dict[str, Any]: """Update an existing memory. Only provided fields are updated.""" try: record = _update_memory(memory_id, content, metadata, tags) except ValueError as exc: return {"error": "invalid_input", "message": str(exc)} if not record: return {"error": "not_found", "id": memory_id} _schedule_cloud_graph_sync() return {"memory": record}