upsert
Create or update a memory by semantic key, preserving history on overwrite. Use for stable values an agent overwrites over time, like config or preferences.
Instructions
Create-or-update a memory by semantic KEY (idempotent). If (namespace,key) exists it is superseded (history kept) and replaced; else created. Use for stable values an agent overwrites over time: a config value, a current decision, a user preference.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Stable semantic key, e.g. default_model or user.timezone. | |
| tags | No | ||
| text | Yes | The new value. | |
| namespace | No | facts |