Why it matters

ReAct is baseline agent pattern. Understanding shapes agent design.

Advertisement

The architecture

Prompt: encourages thought + tool calls.

Loop: thought → tool → observation.

Terminate: on final answer.

ReAct loopThoughtreasoning stepActiontool callObservationtool resultTermination: final answer or max steps; guardrails against loops
ReAct.
Advertisement

How it works end to end

Prompt structure: examples of thought + action + observation.

Parse actions from LLM output.

Execute tool + feed observation.