correct
Update an outdated or incorrect memory by replacing it with a corrected version, preserving history and entity relationships.
Instructions
Correct an existing memory — tombstones the old one and creates a corrected version.
WHEN TO USE: When the user corrects a recalled fact.
"Actually, we're using Python 3.12, not 3.11" → correct the memory. Preserves history and transfers entity relationships to the new memory.
Args: rid: The memory ID to correct. new_text: The corrected text content. new_importance: Optional updated importance (0.0-1.0). new_valence: Optional updated valence (-1.0 to 1.0). correction_note: Why the correction was made.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rid | Yes | ||
| new_text | Yes | ||
| new_valence | No | ||
| new_importance | No | ||
| correction_note | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |