kg_get_relationships
Get relationships for a specific entity from Knowledge Graph.
USE WHEN:
'Кто работает над X?' - filter by works_on
'С кем общался Y?' - filter by discussed_with
'Кто из компании Z?' - filter by member_of
'Что связано с W?' - no filter, get all
REQUIRES: entity_id from previous kg.find_entity step. Use: {{step_N.entity_id}} where N is the find_entity step number.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum relationships to return (1-50). Default: 20 | |
| direction | No | Relationship direction: - 'outgoing': Entity → Others - 'incoming': Others → Entity - 'both': All relationships (default) | both |
| entity_id | Yes | Entity ID from kg.find_entity step. Use {{step_N.entity_id}} reference. | |
| in_workspace | No | Run this one call in this workspace id instead of the session's. Nothing is stored; other sessions are not affected. | |
| relation_types | No | Filter by relationship types (optional): People: works_on, works_for, member_of, manages, knows, client_of, provides_service Communication: discussed_with, participated_in, mentioned_in Org/Project: developed_by, funded_by, partnered_with, integrates_with, depends_on, part_of Document: issued_by, issued_to, signed_by, authored_by Other: uses, located_in, about, follows, owns, related_to |