Build AI Apps with Python: The ReAct Agent Pattern — Think Act Observe | Episode 18

0views
00
24:36
T
Taught by Celeste AI - AI Coding Coach
View on YouTube
Description
A chatbot responds once. An agent loops until done. The ReAct pattern: Think, Act, Observe — the foundation of every AI agent. We build a ReAct agent from scratch. Two tools — weather lookup and calculator. Claude reasons about the question, picks a tool, executes it, observes the result, and loops until it has the answer. Single-step and multi-step reasoning, all visible in the trace. Student code: https://github.com/GoCelesteAI/build-ai-apps-python/tree/main/episode18 What You'll Learn: • The ReAct pattern: Think, Act, Observe loop • Agent vs chatbot — why the while loop matters • Claude tool use with tool definitions and schemas • Tool dispatcher pattern — mapping names to functions • stop_reason to detect when the agent is done • Feeding tool results back as messages • Single-step tool use (weather lookup) • Multi-step reasoning (compare two cities)
Back to tutorials

Duration

24:36

Published

April 4, 2026

Added to Codegiz

April 5, 2026

Open in YouTube