twining_add_relation
Add a relation linking two knowledge graph entities by specifying source, target, and relation type. Resolves entity IDs or names, reporting errors for ambiguous matches.
Instructions
Add a relation between two knowledge graph entities. Source and target can be entity IDs or names. Returns an error for ambiguous name matches.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Source entity ID or name | |
| target | Yes | Target entity ID or name | |
| type | Yes | Relation type: "depends_on", "implements", "decided_by", "affects", "tested_by", "calls", "imports", "related_to" | |
| properties | No | Key-value properties for this relation (max 50 entries, values ≤1000 chars) |