memory_relate
Create directional links between memories to build a knowledge graph. Related memories surface automatically during recall, providing connected context.
Instructions
Create a directional link between two memories. Relations are used by spreading activation (recalling one memory wakes its related cluster) and are returned when include_related=True in memory_recall. Use to build a knowledge graph that surfaces connected context automatically.
source_id is the memory making the claim about target_id. relation_type
must be one of: supersedes (source replaces target), related_to (general
connection), caused_by (source was caused by target), contradicts (conflicting
claims), parent_of (source contains target), child_of (source belongs to target).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source_id | Yes | ||
| target_id | Yes | ||
| relation_type | Yes |