π¦ LangChain & LangGraph
Mental model
LangChain = integrations + building blocks (models, prompts, retrievers, tools). LangGraph = a low-level framework for stateful, controllable agent workflows as graphs, with persistence, streaming, and human-in-the-loop. In 2026, use LangGraph for anything agentic. Python is the most mature; LangGraph.js exists; in Java, see LangChain4j / Spring AI.
LangChain
- Chat models, messages, prompt templates, output parsers / structured output
- Tools (
@tool), tool-calling models - Retrievers, document loaders, text splitters, vector store integrations
- Runnables / LCEL composition (awareness)
LangGraph β
-
StateGraph: state schema, nodes, edges, conditional edges, reducers - Prebuilt ReAct agent vs a custom graph
- Persistence / checkpointers (Postgres checkpointer), threads, memory (short-term vs long-term store)
- Human-in-the-loop:
interrupt, approve/edit tool calls, time travel - Streaming (tokens, updates, events)
- Subgraphs, multi-agent patterns (supervisor, swarm/handoffs)
- Deployment options (LangGraph Platform / self-host with FastAPI), LangSmith tracing
- Connecting to MCP servers (MCP adapters)
π§ͺ Labs (π’ warm-up β π‘ core β π΄ hard β β« boss)
- π’ LangChain Academy Intro to LangGraph modules 1β2
- π‘ A state graph with conditional edges + a Postgres checkpointer
- π΄
interruptfor approvals + time travel + streaming to orbit-stream - β« A supervisor multi-agent (UC11) invoked as an Orbit
agentstep
π§ Cognitive tasks
- βWhat did the framework hide?β: compare it with your Go ReAct agent
π°οΈ Orbit integration
- The orbit-agents service
Go deeper
π§© AI & Agent Patterns Β· π€ Agents & Workflows
Resources
- langchain-ai.github.io/langgraph Β· python.langchain.com Β· LangChain Academy Β· LangChain YouTube