Want a quick email when a new article is published? Subscribe
Who holds the loop? A series on LangChain and other agent frameworks
I built the same two jobs four or five times each, with no framework, with LangChain and LangGraph, with Pydantic AI and with the Claude Agent SDK, then measured what each one changed. One question predicted almost every result: does your code decide the next step, or does the model?
Part 1: The question that sorts every AI framework
Workflow or agent, and why consistent output comes from your schema, not your framework.
How the frameworks divide up the work, how the comparison was run, and what a pipeline with no framework at all taught me about where reliable output comes from.
Part 2: What LangChain actually replaced
Shorter plumbing, longer structure, and a retry that doesn’t help.
The same transcript pipeline in LangChain and LangGraph, then in Pydantic AI, then pausing to ask a person. Line by line, what each framework took away and what it added.
Part 3: When the model holds the loop
Every agent runs the same eight-line loop. The difference is what happens when it has to stop.
One agent built three ways, a guardrail that did its job and still wasn’t enough, the case where LangGraph clearly won, and six behaviours I only found by tracing real runs.
Method and numbers
For anyone who wants to check the working.
Versions, method, every figure the series uses, and the limits of what it shows.
Share this article
Comments
Leave a Comment
All comments are moderated and may take a short while to appear.
Loading comments...