Repository navigation
Strands or LangChain — which should I learn first? #61
|
I have time to learn one agent framework properly. Strands and LangChain/LangGraph both appear throughout this repo and it does not seem to pick a side. Which should I actually learn first, and does the choice matter as much as it appears to? |
Replies: 1 comment
|
Short answer: learn the loop first, then whichever one your codebase uses. The choice matters much less than the order. Why the order matters more. Both frameworks abstract the same thing — a loop that calls a model, dispatches tools, and decides when to stop. If you learn a framework before you can write that loop, every bug in it looks like magic and you debug by changing framework calls at random. Module 05 exists for this: you write the loop by hand, hit the sharp edges yourself, and then meet Strands. It takes an afternoon and it changes how you read both frameworks permanently. The AGL labs do the same in three graded bites. Then pick on your actual constraint:
That last row is the realistic one. Most people do not get to choose; they inherit. What actually transfers. Tool design, memory strategy, retrieval quality, evaluation and cost control are framework-independent. They are also where the hard problems live. The framework is ergonomics around a loop you should already understand — so the migration cost between them is much lower than it feels. See it for yourself: Module 08 runs the same task in both and lets the comparison stand rather than declaring a winner. If you want a written trade-off, the Strands and LangGraph cheat sheets each end with one. |
Short answer: learn the loop first, then whichever one your codebase uses. The choice matters much less than the order.
Why the order matters more. Both frameworks abstract the same thing — a loop that calls a model, dispatches tools, and decides when to stop. If you learn a framework before you can write that loop, every bug in it looks like magic and you debug by changing framework calls at random.
Module 05 exists for this: you write the loop by hand, hit the sharp edges yourself, and then meet Strands. It takes an afternoon and it changes how you read both frameworks permanently. The AGL labs do the same in three graded bites.
Then pick on your actual constraint: