link_memories
Connect two stored memories with a typed relationship so they become queryable edges in the knowledge graph, while rejecting unknown, self-referential, or duplicate links.
Instructions
Create a queryable edge between two memories.
relation_type is free text but keep it consistent, e.g. 'supersedes', 'relates_to', 'contradicts', 'links_to'.
This is what splitting a body into several memories costs: a [[uid]] written inside prose is a reference a reader follows, and only an edge created here is visible to get_relations() and to the graph.
Refuses an unknown uid, a memory related to itself, and an edge that already exists with that same type -- each as {"ok": False, "errors": [...]}, so a typo comes back as something to fix instead of a dangling edge or a raw database error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| to_uid | Yes | ||
| from_uid | Yes | ||
| relation_type | Yes |