sage_link
Create a typed directional relationship between two existing memories to build a knowledge graph. Specify source, target, and relation type such as supports, contradicts, or causes.
Instructions
Create a typed relationship between two existing memories. Use this to build a knowledge graph over memory: record that one memory supports, contradicts, causes, precedes, or refines another. The link is directional (source → target). Common link_type values: related (default), supports, contradicts, causes, precedes, refines, duplicates — but any short relation label is accepted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| link_type | No | Relationship type, e.g. supports, contradicts, causes, precedes, refines, related | related |
| source_id | Yes | ID of the source memory (the 'from' side of the relationship) | |
| target_id | Yes | ID of the target memory (the 'to' side of the relationship) |