LangGraph · Function
add_node
add_node adds a function or runnable to a StateGraph. You can use the function name automatically or provide a custom node name.
Last updated
- Since
- v1.2
Syntax
StateGraph.add_node(node, action=None, *, defer=False, metadata=None, input_schema=None, retry_policy=None, cache_policy=None, error_handler=None, destinations=None, timeout=None, trace_policy=None, **kwargs)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
StateGraphSTARTENDadd_edgeCommandRetryPolicyCachePolicy