Concepts/Definition

ADPS Agent Systems · Engineering Concept

ReAct Reasoning-Action Loop

Alternate reasoning and action so each next step can use a fresh observation from the environment.

Application context

A support agent receives “Why has this order not arrived?” Its first action may retrieve the order. If the parcel has not left the warehouse, the next action should inspect fulfilment. If a carrier has accepted it, the next action should retrieve tracking events. The latest observation determines the path, so a fixed chain is a poor fit.

Definition

ReAct interleaves language-model reasoning with task actions. An action queries a knowledge source, tool, or environment; the resulting observation informs the next decision and action. The original paper studies interleaved reasoning traces and actions. Production systems can record structured decision summaries, actions, and observations without relying on disclosure of hidden model reasoning.

request
  → decide next action
  → call one tool
  → receive typed observation
  → decide again
  → stop, escalate, or act

Engineering use

Every turn carries the same task identity and records the action, argument provenance, observation type, and stop reason. The harness controls turns, token and tool budgets, eligible tools, error formats, and human takeover. Observations pass schema checks before entering another model turn; a tool error must not be rewritten as an empty result.

Compared with Programmatic Tool Calling and CodeAct

ReAct invokes the model again after each observation, which suits an open path that needs continuing judgement. Programmatic Tool Calling writes a local program that loops over, runs, or filters registered tools. CodeAct provides a broader executable-code action space for computation, libraries, and tool composition. The mechanisms can nest: one ReAct turn may choose to run a programmatic tool call.

Boundary

Once steps and dependencies become stable, a task DAG or A2 Plan and Execute is usually easier to test and recover. Use ReAct for choices that depend on fresh observations. Keep the order, authority, and acceptance policy for irreversible actions in explicit runtime controls.

Proposal and provenance

Term origin
External research term: Yao et al.
ADPS editorial work
ADPS records ReAct as a runtime mechanism joining reasoning and action, without assigning it a separate pattern coordinate.
Current standing
Runtime-mechanism concept

Chronicle

First published on ADPS

View in the ADPS Chronicle