Scaffold a tool-using ReAct agent with a checkpointer
When to use: You want a working tool-loop agent as the starting point, not yet another blank notebook.
Prerequisites
- Python 3.10+ and pip — pyenv or system Python
- LangGraph + LangChain core — pip install langgraph langchain-core
Flow
-
Ask for the ReAct scaffoldScaffold a ReAct agent with two tools (search + calculator) and a MemorySaver checkpointer.✓ Copied→ Runnable code with graph, tools, and checkpointer wired
-
Run and step throughRun it with thread_id='thread-1' and show me the state at each step.✓ Copied→ State snapshots per step confirm the loop is working
Outcome: A running agent you can extend instead of starting from zero.
Pitfalls
- Using InMemorySaver in production — Swap to the Postgres checkpointer before shipping; the guide covers the swap