Skip to content
masterclass Buddy

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.

Subscribe
  • START
  • END
  • add_edge
  • Send
  • Command
  • StateGraph

Source: Graph API overview. Checked 2026-11-03.