Link two memories with a typed edge
memory_linkLink two memories with a typed edge to map dependencies, cause/effect, supersession chains, or references. Use after memory_search to structure project knowledge.
Instructions
Create a typed directed edge between two memories. Edge types: relates_to, supersedes, caused_by, mitigated_by, references, implements. Use after memory_search to map dependencies, cause/effect, supersession chains, or references. Re-linking the same (from_id, to_id, edge_type) triple updates the weight (idempotent).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from_id | Yes | Source memory id (the edge points outward from this memory). | |
| to_id | Yes | Target memory id. | |
| edge_type | Yes | Relationship type. `supersedes` is the same notion used by `memory_store.supersedes_id`. | |
| weight | No | Edge strength in [0, 1]. Default 1.0. Lower values can be used to weaken weak "relates_to" hints. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | `Edge created/updated: <from> -[<edge_type>:<weight>]-> <to>` on success, or `Memory <id> not found.` when either endpoint is missing. |