Repository navigation
Module 08 LangChain and LangGraph
The other ecosystem — and an honest side-by-side with Strands.
Module 08 of 16 · track Build · Estimated time: 7–8 hours · Prerequisites: Module 05. Module 06 recommended.
LangChain is the framework you will meet in most existing codebases. This module builds it up from first principles — why it exists, what it actually does — then puts it directly against Strands so you can choose with evidence rather than allegiance.
Open the module on GitHub ↗: the slides, notebooks, exercises and solutions are there. This page is the reading order, with the tutorial and the workbench alongside.
The lesson that frames this module is How AI-DLC, BMAD, Spec Kit and Scrum Fit One Lifecycle (7 min): why the framework changes and the lifecycle does not.
- Explain what LangChain abstracts and why chains exist at all
- Build chains, tools, memory and structured output in LangChain
- Model a stateful workflow as a LangGraph graph
- Compare LangChain and Strands on the same task and justify a choice
| Portable GenAI concepts | AWS-specific surface |
|---|---|
| Chains and composition | langchain-aws |
| Runnables | Bedrock as a LangChain provider |
| Structured output | LangGraph on Bedrock |
| Graph state machines | |
| Middleware |
Portable concepts transfer to any stack. The AWS column is where this module touches the cloud — see docs/concepts/portability-matrix.md.
| # | Step | What it is | |
|---|---|---|---|
| 1 | 📖 | slides/LangChain-from-Zero.pptx |
LangChain from zero |
| 2 | 💻 | notebooks/01_why_langchain_context_and_history.ipynb |
Why LangChain — context and history |
| 3 | 💻 | notebooks/02_essentials_how_langchain_works.ipynb |
How LangChain actually works |
| 4 | ✏️ | exercises/exercise_1_foundations.md |
Exercise 1 — foundations |
| 5 | 💻 | notebooks/03_basic_langchain.ipynb |
Basic LangChain |
| 6 | ✏️ | exercises/exercise_2_tools.md |
Exercise 2 — tools |
| 7 | 💻 | notebooks/04_intermediate_langchain.ipynb |
Intermediate |
| 8 | ✏️ | exercises/exercise_3_memory_and_structured_output.md |
Exercise 3 — memory and structured output |
| 9 | 💻 | notebooks/05_advanced_langchain.ipynb |
Advanced |
| 10 | ✏️ | exercises/exercise_4_middleware_and_graphs.md |
Exercise 4 — middleware and graphs |
| 11 | 💻 | notebooks/PierPoint_LangGraph_Chains_to_Swarms.ipynb |
LangGraph: chains to swarms |
| 12 | 💻 | notebooks/06_langchain_vs_strands_side_by_side.ipynb |
LangChain vs Strands, side by side |
| 13 | ✏️ | exercises/exercise_5_multiagent_capstone.md |
Exercise 5 — multi-agent capstone |
📖 read 💻 run ✏️ practise 📊 workbook 🔖 reference
Worked solutions live in solutions/. Attempt every exercise closed-book first — the solutions are written to be read after you have a wrong answer to compare against.
- Cargo-culting chains. If a function would do, use a function.
- LangGraph state that grows without bound — checkpointing is not free.
Every error anyone has hit in this course is in the Error Index, by the exact string. Model access and region problems are in Model and Region Notes. If it is a question rather than an error, check the answered ones first, then ask in Q&A.
Frameworks
- Handoff Multiplier — Cost the topology, whichever framework
- Context Budget Ledger — Checkpointed state is not free
Quick reference
- LangChain and LangGraph — Runnables, state machines, checkpointing
- Strands — The other side of the comparison
Recipes and procedures
- Migrate LangChain ↔ Strands — And when not to
← Module 07 · Multi-Agent Patterns with Strands · All modules · Module 09 · LLM Memory Mechanics →
✏️ This page is generated from modules/08-langchain-and-langgraph/README.md. To change it, edit the module README: an edit made here is replaced at the next sync.
This wiki is the connective layer. The repository is canonical and versioned; these pages are the cross-surface maps and the notes that change too often to live in a reviewed file. Anyone can edit — see Editing this wiki.
▶ Start here · 55 lessons, on the site ↗
- Getting started · 2
- Agentic PDLC fundamentals · 9
- Methods decoded · 7
- Running delivery · 13
- By role · 9
- Teams and organisation · 4
- Practice · 4
- Interviews and careers · 7
The method
The Agentic PDLC
The Eight Loops
Gates & Governance
The Evidence Pack
The journey · end to end
Product manager
Solution architect
Engineering lead
QA lead
DevOps & platform
The method · by role
Product manager
Solution architect
Engineering lead
QA lead
DevOps and platform
Sponsor
How to
Run an NFR workshop
Design an agent on paper
Build, buy or borrow
Cut sprints into bolts
Review by risk band
Prove the bar
Control the token bill
Hold the security boundary
Run a missing-control postmortem
Reference
Mental Models
Glossary
Formulas & Calculators
Decision Trees
Scenario Library
Exercises & Answers
Anti-Patterns
Sources & Confidence
Where do I find…?
The 16 modules
- Agentic Foundations
- LLM Intuition and the AWS Bridge
- Amazon Bedrock Essentials
- Amazon Bedrock Agents
- Agent Builder, Knowledge Bases and Guardrails
- The Agent Loop: No Framework to Strands
- Strands Foundations: Tools, Memory and MCP
- Multi-Agent Patterns with Strands
- LangChain and LangGraph
- LLM Memory Mechanics
- RAG, OpenSearch and LiteLLM
- Amazon Bedrock AgentCore
- A2A and A2UI: Agent Interoperability
- Agentic QA and Evaluation
- End-to-End Production Pipeline
- Agentic Product Lifecycle
Learning paths · Field guide
Study Plans
Eight sessions
Living notes
Error Index
Community Answers
Field Notes
Model & Region Notes
Cost Log
Scoreboard 🧪
The project
Roadmap
Editing this wiki
Maintainer Runbook
📘 The manual · live
🛫 Ninety Days, the simulator
🧰 The workbench
👔 For leadership
🧠 Mental models
Templates · Prompts
Frameworks & acronyms
The repository · Setup
Pinned discussions
Discussion map — where to post what
Exercise & lab index
Simulator Arena — get a lab graded
Pitch an idea
All discussions →