link_memories()
KeyCreates a typed relationship edge between two memory items — supports, contradicts, refines — with the rationale recorded on the edge.
link_memories(from_id, to_id, relation, rationale)→ EDGECallable over MCP as link_memories(from_id, to_id, relation, rationale). REST mirror POST /v1/memories/link Planned — alpha is MCP-only
When the agent notices structure — this lesson supports that belief, this fact contradicts that assumption — it records the relationship explicitly, with the reasoning on the edge. Retrieval gets smarter every time.
Over MCP, your agent invokes it on its own when the moment calls for it — just describe the situation. A Python SDK for headless runtimes is planned; this is what the call will look like.
| Param | Type | Description |
|---|---|---|
| from_idREQUIRED | string | Source memory id. |
| to_idREQUIRED | string | Target memory id. |
| relationREQUIRED | string | The typed relation, e.g. "contradicts". |
| rationaleREQUIRED | string | Why this edge exists. |

