← Glossary
Agentic AI concepts

ReAct Prompting

A prompting framework that interleaves Reasoning (Thought) and Acting (Action/Observation) steps, guiding an agent to think before each tool call and incorporate the observation into subsequent reasoning.

ReAct (Yao et al., 2022) formalizes the think-act-observe loop as a structured prompt format. Each step has three components: a Thought (the model's reasoning about what to do next), an Action (a tool call), and an Observation (the tool result injected back). This explicit structure dramatically reduces hallucination compared to asking models to answer complex questions without tool access.

The format is largely baked into modern agent SDKs. Claude's tool-use API naturally produces a reasoning step before each tool call. The explicit thought field is particularly valuable for auditing: reviewers can see whether the model's stated rationale matches the action taken.

ReAct falls short when tasks require deep forward planning before acting—situations where chain-of-thought planning (Reflexion, Tree of Thoughts) outperforms the purely reactive approach. Hybrid architectures combine an upfront planning pass with ReAct-style execution.

Related terms
chain-of-thoughtagent-looptool-usefew-shot-promptingplanning-agent