add_edge
Create a directed edge between two nodes in a knowledge graph, specifying the relationship type and optional weight.
Instructions
Create a directed edge between two nodes with relationship type and weight.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from_id | Yes | ||
| to_id | Yes | ||
| relation | Yes | ||
| weight | No | ||
| api_key | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |