diagram_node
Add, patch, or remove a single diagram step without affecting other fields. Build flows across multiple calls, then validate the full graph with diagram().
Instructions
Add, patch or remove one step of a diagram.
Only the arguments you pass are touched, so patching a note leaves the label alone; pass note="" to clear one. delete=True removes the step together with its edges and its memory links.
The whole-graph rules are relaxed here on purpose: a step may sit unattached until you add its edges, which is what lets a flow be built up across several calls. diagram() enforces them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| uid | Yes | ||
| note | No | ||
| label | No | ||
| shape | No | ||
| delete | No |