ReAct
aka Reason+Act · Thought-Action-Observation Loop
The agent alternates iteratively between a reasoning step and a tool call until the goal is achieved. It observes the result of the action and derives the next step from it.
- Use when
- The task requires tool use and the exact path cannot be planned in advance.
- The agent must react adaptively to tool results.
- Adaptivity matters more than minimizing LLM calls.
- Don't
- The plan is known in advance — use Plan-and-Execute.
- Costs per LLM call are strictly limited.
- The task is pure text generation without external data.
- Trade-off
- High adaptability is gained at the expense of a significantly higher token and call volume per step.