Skip to main content
Training & Optimization

ReAct Pattern

ReAct (Reasoning + Acting) is a prompting pattern that interleaves reasoning steps ("Thought") with tool actions ("Action") and tool results ("Observation"), letting an LLM iteratively decompose a task, query the world, and self-correct.

AIDOLS Research Team · Editorial standards

Full definition

Introduced by Yao et al. (Princeton/Google, 2022), ReAct outperformed act-only prompting on every benchmark tested and was competitive with chain-of-thought on knowledge-intensive tasks: ahead on Fever, slightly behind on HotpotQA, with the two combined performing best. On the ALFWorld and WebShop decision-making benchmarks it beat imitation- and reinforcement-learning methods by 34 and 10 percentage points. The pattern is now the canonical agent loop in LangChain, LlamaIndex, and most agent frameworks. Modern function-calling LLMs implement ReAct natively in their tool-use training.

Why it matters

ReAct is the simplest pattern that turns a chat LLM into an agent. Understanding it is prerequisite to designing reliable agentic workflows — including knowing when ReAct's chattiness is excessive overhead and a planner-executor split would be cheaper.

Example

Thought: "I need yesterday's closing price." Action: get_stock_price("AAPL", "2026-05-01"). Observation: 224.18. Thought: "Now I can compute the daily change."

Next steps

More training & optimization terms

Source & further reading

Primary source: Yao et al. — "ReAct: Synergizing Reasoning and Acting in Language Models" (ICLR) (2023).

Citation policy: this entry is part of the AIDOLS AI Implementation Glossary and may be quoted for research, journalism, and education with attribution to aidolsgroup.com/en/glossary/react-pattern/.