Back to glossary

ReAct Pattern

An agent architecture that interleaves Reasoning and Acting steps, where the model thinks about what to do next, takes an action, observes the result, and repeats. ReAct combines chain-of-thought reasoning with tool use in a unified loop.

The ReAct pattern (Reason + Act) is one of the most widely adopted agent architectures. At each step, the agent generates a thought explaining its reasoning, decides on an action to take, executes that action, and observes the result. This cycle continues until the task is complete. The explicit reasoning traces make the agent's decision-making transparent and debuggable.

For teams building production agents, ReAct provides a good balance of capability and observability. The reasoning steps create natural audit logs that help you understand why an agent took a particular path, which is invaluable for debugging and improving agent behavior. The pattern works well for tasks that require dynamic tool selection, like customer support agents that need to check orders, process refunds, or escalate issues based on context. Most agent frameworks including LangChain and LlamaIndex implement ReAct as a default agent type.

Related Terms