shortest_path
Find the shortest path between two entities in a knowledge graph to reveal how concepts are connected.
Instructions
Find the shortest path between two entities in the knowledge graph using bidirectional BFS. Returns the path as a list of entity texts from source to destination. Useful for understanding how concepts are connected. Requires storage adapter with graph capability.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_hops | No | Maximum path length to search (default 4, max 10) | |
| dst_entity | Yes | The destination entity text | |
| src_entity | Yes | The source entity text |