Metis · Memory Curator — Link Memories
link_memoriesCreate typed relationships between memory entries across different layers to build a lightweight knowledge graph, enabling graph traversal during recall.
Instructions
Create a typed relationship between two memory entries.
Links two entries across any memory layers — episodic, semantic, procedural,
memory (palace), or knowledge. This builds a lightweight knowledge graph on
top of the existing memory layers, enabling graph traversal during recall.
Example relations: 'informed_by', 'contradicts', 'elaborates', 'derived_from',
'supersedes', 'related_to', 'supports', 'led_to'.
Args:
source_layer: Layer of the source entry ('episodic', 'semantic',
'procedural', 'memory', 'knowledge').
source_id: Row ID of the source entry in its layer.
target_layer: Layer of the target entry.
target_id: Row ID of the target entry in its layer.
relation: Relationship type (e.g. 'informed_by', 'contradicts').
note: Optional free-text note explaining the relationship.
Returns:
Confirmation of the created link, or an error if it already exists.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| relation | Yes | ||
| source_id | Yes | ||
| target_id | Yes | ||
| source_layer | Yes | ||
| target_layer | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |