Even though this uses conditional edges, the workflow is effectively linear:
start
coordinator
flight specialist
hotel specialist
activity specialist
synthesizer
end
Knowledge Check
If the workflow is effectively linear, why does the graph still use
add_conditional_edges and the should_continue() router?
Click here to see the answer
Because it makes the workflow flexible and extensible. Even though the current flow
is linear, the routing function allows the graph to dynamically decide the next node
based on the state. This makes it easy to add branching, retries, or different
execution paths later without redesigning the graph.