ReAct: interleaved reasoning

ThoughtAction / Observationerror
Act-onlyActionquery()Obs400 errorActionquery()Obs400 errorActionguess()Obs400 errorReActActionquery()Obs400 errorThoughtno currencyActionschema()ObscurrencyAction200 OK
  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.
Notes & references

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