Update Memory
montycat_updateUpdate a stored memory in place when a fact or preference changes, avoiding duplicates. Pass only the fields to modify, identified by key or custom key.
Instructions
Revise an existing memory in place (memory is mutable).
Use this when a stored fact changes — a corrected value, an updated
preference — instead of storing a duplicate. Only the fields you pass are
changed. Identify the record by key or custom_key.
Args: updates: Fields to change, e.g. {"status": "resolved"} or {"name": "Alice"}. keyspace: Memory namespace (defaults to the configured one). key: Montycat-generated key of the record to update. custom_key: Custom key of the record to update. wait_for_index: For persistent keyspaces, wait for secondary indexes before returning. Defaults to the engine setting.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | ||
| scope | No | ||
| vector | No | ||
| updates | Yes | ||
| keyspace | No | ||
| custom_key | No | ||
| wait_for_index | No |