Flashcard: what is the ReAct prompting pattern?
ReAct interleaves reasoning and tool calls in a structured Thought-Action-Observation loop, ending in a Final Answer; it is the substrate for most modern agent frameworks.
Imagine a detective solving a case out loud. They say I think the answer might be X, so let me check the records, then they actually walk to the records room and look something up, then come back and say okay, the records say Y, so now I think Z. ReAct makes the LLM behave the same way. The model writes a Thought (its reasoning), then an Action (what tool it wants to use), then the orchestrator runs the tool for real and writes back the Observation (what came back). The loop repeats until the model has enough information to write a Final Answer. The model itself cannot run tools; it just describes what tool to run, and a separate program (the orchestrator) does the actual running.
Detailed answer & concept explanation~7 min readEverything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
6 min: define ReAct as Reason + Act loop, walk through the four-label structure, explain orchestrator vs model roles, name the stop-sequence mechanism, cover failure modes, connect to native tool-calling APIs.
Real products, models, and research that use this idea.
- Yao et al.'s 2022 ReAct paper introduced the pattern on HotpotQA and ALFWorld benchmarks, showing it beat plain CoT and plain action-only baselines.
- LangChain's AgentExecutor and LangGraph implement ReAct as a default agent pattern, used across thousands of production LLM applications.
- Claude Opus 4.7 and GPT-5.5 native tool-calling APIs encode ReAct semantics as structured JSON messages (tool_use blocks with tool_result responses) instead of raw text.
- AutoGen, CrewAI, and LlamaIndex's ReActAgent all run the Thought-Action-Observation loop under the hood with various extensions for multi-agent coordination.
What an interviewer would ask next. Try answering before peeking at the approach.
QHow does native tool-calling (Claude tool_use, OpenAI function-calling) differ from raw-text ReAct, and what does it solve?
QWhat goes wrong without a max-steps cap on a ReAct loop?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes that signal junior thinking. Click to expand.
Thinking the LLM actually executes tools; the model only proposes actions, an orchestrator runs them and feeds the real results back as observations.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.
Same topic, related formats. Practice these next.