Update Memory
montycat_updateUpdate an existing memory record in place when a stored fact changes, passing only the fields to modify. Prevents duplicate entries by revising the original record via 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 |