edit_memory
Correct a memory's content, source reference, title, or tags while keeping the previous version. Choose append mode to add new facts to a memory instead of replacing its body.
Instructions
Correct a memory's content or its source reference, keeping the previous version.
Corrections are common in append-only memory stores that only support delete, not edit; this preserves the old content instead of losing it.
mode='append' adds new_content as a new line at the end instead of
replacing the body. Use it when a memory gains a fact rather than
turning out to be wrong: the alternative is reading the whole thing,
restating it and sending it back, which pays for the body twice and
stakes the existing text on it being copied faithfully. Append what
THIS memory gained. A fact about a further subject is a new memory plus
an edge, not a line at the bottom -- appended text is ranked as part of
the body it lands in and comes back with it.
source_ref points the memory at what its claim came from -- the field
note() takes at write time, and the one a later pass checks the claim
against. It is settable on its own, with no new_content, for the
common case of a body that is right and a reference that is missing or
has moved; an empty source_ref leaves the stored one alone, and
clearing one is a dashboard edit. Passing neither is an error rather
than a silent no-op.
title renames the memory: the one line a list shows it by, and the field weighing most in search, at most 120 characters. Settable on its own, like source_ref. A diagram is renamed through its graph instead -- its title is part of what generates the body, so a rename here would be overwritten by the next structural change.
tags REPLACES the tag set, comma-separated: pass the whole set that should survive, not the one being added. Settable on its own, and indexed, so this is how an untagged memory becomes findable by the words its body never uses. An empty string leaves the stored tags alone -- clearing them, like clearing a source_ref, is a dashboard edit.
Refuses to rewrite a diagram's content: that is generated from the graph, so a hand-written replacement would be silently overwritten by the next structural change -- edit the flow through diagram_node/diagram_edge. Its source_ref is ordinary metadata and is editable here like any other memory's.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | ||
| mode | No | replace | |
| note | No | ||
| tags | No | ||
| title | No | ||
| source_ref | No | ||
| new_content | No |