← All drillsBuild a ReAct Agent
What you'll be able to do- ✓Build the ReAct loop from scratch in pure Python — reason, act, observe, repeat
- ✓Define a tool set of callable functions with names and descriptions the planner can dispatch
- ✓Write the planner contract — the Thought / Action / Action-Input format the LLM must emit
- ✓Parse a planner step and route it to the right tool, feeding each observation back in
- ✓Harden the loop against sloppy output — the format-and-parsing fix that lifts reliability from ~20% to ~60%
- ✓Ship a reusable ReActAgent class and swap the scripted planner for a real LLM in one line
Build the reason-act-observe engine behind tool-using AI agents — the loop that lets ChatGPT, Claude, and Perplexity call a calculator, search the web, or run code instead of guessing from memory.
⌁ The core loop inside every tool-using agent — OpenAI function-calling agents, Anthropic's Claude tool use, LangChain and LlamaIndex agents, Perplexity's answer engine, and AutoGPT-style task runners.
Start this internshipCreate an account to unlock the 9 sections, the workbench, and AskThili.
BeginSections
1. Build a ReAct Agent — Reasoning + Acting from Scratch
🔒 locked2. Lesson 1 - What an agent is
🔒 locked3. Lesson 2 - The tool set
🔒 locked4. Lesson 3 - The planner contract
🔒 locked5. Lesson 4 - Parse a step
🔒 locked6. Lesson 5 - The execution loop
🔒 locked7. Lesson 6 - When it goes wrong
🔒 locked8. Lesson 7 - Multi-step reasoning
🔒 locked9. Lesson 8 - Ship your ReAct agent
🔒 lockedDig deeper
📄ReAct: Synergizing Reasoning and Acting in Language Models (Yao et al., 2022, arXiv:2210.03629)
paper🔗Building Effective Agents — Anthropic Engineering
article🔗ReAct Prompting — Prompt Engineering Guide
docsPart of these learning paths
I'm a software engineer and I want to learn agentic programming
View path →