AI Agents · Function
add_conditional_edges
add_conditional_edges chooses the next graph node at run time. A routing function reads the current state and can select one route, several parallel routes, termination, or dynamic Send work.
Last updated
Syntax
graph.add_conditional_edges(source, path, path_map=None)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
STARTENDadd_edgeSendCommandStateGraph