Record how a memory turned out
record_outcomeRecord how a previously saved memory turned out (for example a tentative fix is later confirmed working), or mark it superseded when a later memory replaces what it said. Changes the outcome of one existing note.
Args: episode_id: the id returned when the memory was saved (by remember). result: "success", "failure" or "superseded". "superseded" marks a note as stale rather than wrong, for example when a later memory corrects it: recall()'s ranking then suppresses it so it cannot outrank what replaced it. delta: optional adjustment to this memory's ranking weight. resolved: optional free-text note on how it was resolved. Ignored when result is "superseded". device_id: the named memory the note lives in, if not the account's default one. expected_prior_result: optional compare-and-swap guard: "pending" closes the note only if nothing has resolved it since it was read. If another caller got there first, the call fails with outcome_conflict and the current value, instead of overwriting it.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"episode_id": "<episode_id>",
"result": "<result>"
},
"name": "record_outcome"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| delta | No | ||
| result | Yes | ||
| resolved | No | ||
| device_id | No | ||
| episode_id | Yes | ||
| expected_prior_result | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |