add_edge
Adds an edge between LangGraph nodes to define control flow. Supports simple transitions to a target node or END, and conditional routing via a router function and path mapping.
Instructions
Add an edge between nodes.
Simple edge: set to (a node id, or "END").
Conditional edge: set condition (the name of a router function in
nodes.py) and paths (a mapping of the router's return value to a
target node id or "END").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ||
| from_ | Yes | ||
| paths | No | ||
| condition | No | ||
| project_dir | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||