Edit observation
edit_observationReplace one observation's exact text in a memory entity to correct or update a stored fact, preserving original metadata and recording who edited it and when.
Instructions
Replace one observation's text in place.
Keeps the observation's original added_at and agent, and records the edit in edited_at and edited_by. Returns the edited observation. Fails without saving when the entity or old text does not exist, or when the entity already has the new text. To add a new fact, see add_observations.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| newText | Yes | Replacement text, one plain sentence. | |
| oldText | Yes | Exact current text of the observation. | |
| entityName | Yes | Name of the entity that has the fact. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | ||
| entityName | Yes | ||
| observation | Yes |