Skip to main content

3 docs tagged with "loops"

View all tags

Agent Concepts

A chain has edges you fixed at design time: step A always leads to step B. An agent hands that decision to the model — the next step is chosen at runtime, from the model's own output.

Conditional Edges

A plain addedge("a", "b") always routes from a to b. addconditional_edges routes based on a function of the current state — this is how a graph loops an agent node against a tool node until the model stops requesting calls.