Case & CodeA FIELD GUIDE TO AI
Start learning
Intermediate

ReAct (reason and act)

In plain words

Choose an action, use a tool, inspect the result, and repeat as needed.

The fuller definition

A prompting approach that interleaves reasoning text, tool actions, and observations to help a model solve a task.

How it fits together
  1. Plan

    Select an action

  2. Act

    Use a tool

  3. Observe

    Use its returned result

A simplified relationship, not a screenshot or a complete design.

A concrete example

A system searches a source, inspects the returned result, and chooses another action.

The distinction that matters

The original research pattern is distinct from the React web framework. Modern agent loops need not expose internal reasoning.

Related terms

Where it is taught

Prompts, skills, workflows, and agents

Source and further reading

Yao et al. · ReAct: Synergizing Reasoning and Acting in Language Models (arXiv, October 2022)

The definition and example are written for this library. The link gives background, official documentation or legal authority as labelled. Legal scope depends on the jurisdiction and current text; product features depend on release and settings.

Lessons, terms, practical guides and sources ESC