nyarhi_add_edge
Add a typed relationship between two nodes in a knowledge graph. Specify source and target node IDs, edge type, and optional properties.
Instructions
Add a typed edge between two nodes.
source/target are node ids, edge_type the relationship type
(e.g. owns, works_at), props optional key/value properties, store
an optional store file.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"source": "<source>",
"target": "<target>",
"type": "<type>"
},
"name": "nyarhi_add_edge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | ||
| props | No | ||
| store | No | ||
| source | Yes | ||
| target | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |