add_node
Add or update a node in a LangGraph project, automatically making the first node the entry point. Use config to set the node's function, or pass entry_point to reassign which node starts the graph.
Instructions
Add or update a node. config['function'] names the callable in nodes.py (defaults to the node id if omitted).
The first node added to a project becomes the entry point automatically; pass entry_point=True to (re)designate a later node instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| type | No | python | |
| config | No | ||
| entry_point | No | ||
| project_dir | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||