PromptItIn logoPromptItIn
AI glossary · Prompting

ReAct Prompting

Interleaving reasoning traces and actions so a model can use tools and reflect on their results.

PromptItIn team

A bookshelf with one card pulled out

What it means

ReAct (Reasoning + Acting) is a prompting framework where the model alternates between Thought steps (internal reasoning), Action steps (calling a tool or API), and Observation steps (the tool's result) until it reaches a final answer.

This structure grounds the model's reasoning in real retrieved data and allows it to correct course mid-task if a tool returns unexpected results. ReAct was introduced in a 2022 Princeton/Google paper and became a foundational pattern for LLM agents.

It outperforms both pure chain-of-thought (no tools) and pure tool-use (no reasoning) on tasks requiring dynamic information retrieval.

Examples

  • Thought: I need the current exchange rate. Action: search('USD to EUR exchange rate today'). Observation: 1 USD = 0.92 EUR. Answer: €92.
  • A ReAct agent answering a multi-hop Wikipedia question by iterating search → read → reason until all sub-questions are resolved.

Chain-of-Thought

A prompting technique that asks the model to reason step-by-step before giving a final answer.

Agent

An AI system that autonomously plans and executes multi-step tasks using tools and environment feedback.

Tool Use

The ability of a model to invoke external tools — APIs, code executors, search — to augment its capabilities.

Put this into practice

PromptItIn applies techniques like react prompting for you: describe what you want and it builds the prompt.

Try PromptItIn freeAdd to Chrome, free

You might also like

How Students Can Use AI Effectively →What is Prompt Engineering? →Why Your ChatGPT Prompts Are Failing (And How a Browser Extension Fixes It) →Prompt Chaining: How to Get Better Results from AI with Multi-Step Prompts →Step-by-Step Prompt Generator →Google Gemini →
← Browse the AI prompt glossary