Add Edge
add_edgeAdd a typed relationship between two nodes in a workflow state graph, tracking dependencies, blockers, and more. Ensures valid graph by rejecting cycles in dependency-related edges.
Instructions
Create a relationship/edge between two nodes. Cycles are rejected for depends_on, blocks, and child_of.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | The relationship type. | |
| project | No | Optional project identifier. | |
| source_id | Yes | The source node ID. | |
| target_id | Yes | The target node ID. | |
| properties | No | Optional edge properties/metadata JSON object. |