Traverse the Knowledge Graph
get_relatedRetrieve neighboring units from a knowledge graph using a domain and slug, returning incoming and outgoing links with relationship types to broaden search results.
Instructions
Traverse the knowledge graph: given a unit, return its neighbours — the units it links to (outgoing) and the units that reference it (incoming), each with the relationship type. Use this after a get_* call to widen an answer with adjacent units.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Slug of the unit to start from (or an HRN id when domain is 'handbook'). | |
| domain | Yes | ||
| locale | No | Language of the returned body. Default: en. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | Yes | ||
| incoming | Yes | ||
| outgoing | Yes |