# 1.2 ReAct: interleaved reasoning

Thought → Action → Observation grounds each tool call in the last observation.

1. Act-only and ReAct emit the same first Action.
2. Both receive a schema error as the Observation.
3. Act-only: blind retries without error attribution.
4. ReAct: a Thought diagnoses the error and re-plans the Action.

- **Use when:** Multi-step tool use where observations change the plan.
- **Avoid:** Large thinking budgets on trivial, deterministic lookups.

```
Action:       query(charges)
Observation:  error: "currency" is required

Thought:      I am missing a field. Check the schema first.
Action:       describe(charges)
Observation:  { amount: int, currency: "usd" }

Thought:      Now I know the missing field.
Action:       query(charges, currency="usd")   # works
```

## References

- [ReAct: Synergizing Reasoning and Acting](https://arxiv.org/abs/2210.03629) (Yao et al.)
- [The "think" tool](https://www.anthropic.com/engineering/claude-think-tool) (Anthropic)
- [Extended thinking](https://platform.claude.com/docs/en/build-with-claude/extended-thinking) (Anthropic)
- [Reflexion](https://arxiv.org/abs/2303.11366) (Shinn et al.)
