The Alternatives Issue For tool owners Sign in

ReAct prompting

ReAct interleaves reasoning steps with tool actions, letting a model think, act, observe, and repeat until it answers.

Example input

Q: Who won the 2022 final and what was the score? Thought: I should search. Action: search[...] Observation: ...

In more detail

What it means

ReAct ("Reason + Act") is a prompting pattern where the model alternates between writing a reasoning step ("Thought"), taking an action against a tool ("Action", e.g. a search or calculator call), and reading the result ("Observation"), looping until it has enough to answer. Unlike pure chain-of-thought, which reasons without external grounding, ReAct lets the model fetch facts mid-reasoning — reducing hallucination and enabling multi-step tasks like research, browsing, and database lookups. It is the backbone of most tool-using agents. Reliability comes from a clear action schema, a hard step cap, and an observation format the model can parse.

Part 1 of 3

When to use it, and when not

Use it for

  • Agents that must call tools (search, code, APIs) to answer.
  • Multi-step tasks where facts must be fetched, not recalled.
  • Reducing hallucination by grounding each step in real observations.

Skip it for

  • Closed-book questions the model can answer directly — the action loop is overhead.
  • Latency-critical paths; each Thought-Action-Observation cycle is a round trip.

Part 2 of 3

Example

What goes in, and what comes out.

Input

Q: Who won the 2022 final and what was the score? Thought: I should search. Action: search[...] Observation: ...

Output

After one search-observe loop the model answers with the grounded result instead of guessing.

Part 3 of 3

Common mistakes

  • No step cap — the loop runs away on hard or ambiguous queries.
  • Free-text actions the runtime can't parse; define a strict action schema.
  • Using ReAct when chain-of-thought (no tools) already suffices.

FAQ

Questions readers ask.

What is react prompting?

ReAct interleaves reasoning steps with tool actions, letting a model think, act, observe, and repeat until it answers.

When should you use react prompting?

Agents that must call tools (search, code, APIs) to answer. Multi-step tasks where facts must be fetched, not recalled. Reducing hallucination by grounding each step in real observations.

When should you not use react prompting?

Closed-book questions the model can answer directly — the action loop is overhead. Latency-critical paths; each Thought-Action-Observation cycle is a round trip.

What are the common mistakes with react prompting?

No step cap — the loop runs away on hard or ambiguous queries. Free-text actions the runtime can't parse; define a strict action schema. Using ReAct when chain-of-thought (no tools) already suffices.

Last updated: 2026-06-02. Raw markdown: https://promtable.com/glossary/react-prompting.md. Found a mistake? Tell us.