Metis — KG Memory Connections
kg_memory_connectionsDiscover linked memory entries by shared topics, navigating up to a given depth. Returns connected entries grouped by distance.
Instructions
Find memory entries connected to a given entry via shared topics.
Uses the memory_links graph built by kg_index_memory(). BFS flood-fill
from the given entry up to `depth` hops.
Args:
entry_type: Type of the starting entry: 'memory', 'episodic', 'semantic', or 'idea'.
entry_id: ID of the entry (entry_id for memory, numeric id for others).
depth: Maximum hop distance (default 2).
Returns:
Connected entries grouped by distance, with their shared topics.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | ||
| entry_id | Yes | ||
| entry_type | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |