query_graph
Traverse the knowledge graph from an entity using BFS to collect connected entities and memories within a specified number of hops.
Instructions
Multi-hop graph traversal from an entity. Performs BFS traversal of the knowledge graph starting from the given entity, collecting all connected entities and memories within max_hops hops. Requires storage adapter with graph capability.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum memories to return (default 20, max 100) | |
| max_hops | No | Maximum traversal depth (default 2, max 5) | |
| entity_text | Yes | The starting entity text to traverse from |