memory_pin
Pins or unpins a fact. Consolidation never merges a pinned fact. Pinning
does not raise the fact in memory_recall or memory_search: a pinned
fact and an identical unpinned one get the same score.
Arguments
| Name | Type | Required | Default | Notes |
|---|---|---|---|---|
factId | string | yes | Id of the fact. | |
unpin | boolean | no | false | Pass true to unpin. |
idempotencyKey | string | no | Prevents pinning or unpinning twice on a retry. |
Example
Pin the fact that says “The Larkspur warehouse fleet gets new firmware every two weeks”:
{
"name": "memory_pin",
"arguments": {
"factId": "<fact id>"
}
}To unpin, send { "factId": "<fact id>", "unpin": true }.
Returns
The updated fact, as the server returns it from POST /facts/{id}/pin.
It has the same fields as the response of
memory_remember, with pinned set to true or
false.
Notes
- Pin sparingly. A pin is for a fact that must survive consolidation as written.
- A pinned fact still has a validity window.
memory_forgetcloses it like any other. memory_sessionwithaction: "pin"does the same thing.