ReAct
Interleaved thought-action-observation cycle
Mechanism
An interleaved reasoning-action loop where the agent cycles through Thought (reason about the situation), Action (invoke a tool or take a step), and Observation (process the result). Unlike pure Chain-of-Thought which reasons then answers, ReAct interleaves reasoning with environmental feedback, allowing the agent to adjust plans based on real-world results. It interleaves reasoning traces for a Task with ToolInvoke execution, updating the context with observation results.
Invariants
- Action based on reasoning
- Cycle of Thought-Action-Observation
Preconditions
- Environment access
- Goal
Postconditions
- Goal reached or deemed impossible
Failure modes
- Observation Blindness: Agent ignores observations and follows initial plan.
- Loop Explosion: Endless thought-action cycles without termination.
- Action CognitiveBias: Jumping to actions without sufficient reasoning.
Where this came from
—
Builds on
- Loop references
- Agent references
- Chain references
- CognitiveBias references
- ToolInvoke composes_with
- Task accepts
Used by
- EventReact references
Related
Identity
- Ref:
ReAct#3361 - Hash: sema:ReAct#mh:SHA-256:3361fd75537995da1d70c0f60b9b8bd01c44bad9e2596a81fa059b7c6c3fba83
- Library: bootstrap 0.11.0, root a6a3d1ff0f98
- License: Not stated; check the repository