liveBook · Manning

Conditional edge

A conditional edge is a graph or workflow transition whose destination is selected by evaluating a condition at runtime.

How 2 Manning books explain it

AI Agents and Applications

A conditional edge is a workflow transition whose destination is selected at runtime according to state or other conditions.

How it is used
Routes stateful workflows between processing, retry, and termination paths according to runtime conditions.
How deep it goes
Explains routing functions, retry limits, and step-by-step inspection of tool-routing decisions.
Examples
Uses search-result refinement, relevance-based report generation, and a travel assistant’s tool-call decisions.
What you can do after
Apply conditional routing via LangGraph to choose workflow nodes and inspect tool-call decisions.

Read how AI Agents and Applications explains conditional edge →

Build Python Web Apps with Streamlit

A conditional edge is a graph transition whose next node is selected by evaluating a specified condition.

How it is used
Routes an agent graph between tool execution and conversation completion according to the assistant's latest response.
How deep it goes
Explains branching, built-in routing, and the tool loop, but stops short of detailing the condition function's internal implementation.
Examples
Uses an agent graph that tracks or cancels orders through tool calls.
What you can do after
Apply it via LangGraph to route tool-enabled assistant workflows and return tool results for further reasoning.

Read how Build Python Web Apps with Streamlit explains conditional edge →

Also covered in

What to know first

Related concepts

Questions about conditional edge

What is conditional edge?

A conditional edge is a graph or workflow transition whose destination is selected by evaluating a condition at runtime.

Which Manning books explain conditional edge?

AI Agents and Applications and Build Python Web Apps with Streamlit.

What should I know before learning conditional edge?

Manning books that teach conditional edge usually introduce language model, query rewriting and vector database first.

What is conditional edge a kind of?

Conditional edge is a kind of edge. An edge is a connection between two vertices or nodes in a graph or related structure, representing a relationship and optionally carrying direction, labels, or weights.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.