AI / MLAgents & ProtocolsDiagramBeginner
ReAct Pattern
KO: ReAct 패턴·EN: ReAct Pattern·JA: ReActパターン·Reasoning + Acting
A foundational agent pattern that interleaves verbal Reasoning traces (Thought) with external Tool Actions (Action) and environment feedback (Observation) to ground multi-step problem solving
Table of Contents
Structure Diagram
ReAct (Thought → Action → Observation) Interleaved Loop
1/41. Thought— Reason what is missing
Reason what is missingQuick Answer
What is ReAct Pattern?
A foundational agent pattern that interleaves verbal Reasoning traces (Thought) with external Tool Actions (Action) and environment feedback (Observation) to ground multi-step problem solving. It is a core concept in Agents & Protocols within AI / ML.
Core Principles
Pure Chain of Thought relies exclusively on internal weights, letting early hallucinations compound unchecked. ReAct (Reasoning + Acting) interleaves Thought (planning), Action (tool invocation), and Observation (real environment feedback) so every reasoning step is grounded against live data.
Practical Takeaways
- Implement ReAct with native Tool Calling: Skip brittle regex parsing of
Action:strings; combine native function calling with structured reasoning or thinking traces. - Return actionable error observations: When a tool fails, return clear corrective hints (e.g., expected date format or valid enum values) so the next Thought self-corrects cleanly.
- Bound Observation payloads: Truncate or paginate large tool responses before appending them to the loop context.
Notable Examples
- LangGraph & Agent SDKs: Use ReAct as the canonical single-agent execution pattern.
- Multi-Hop Fact Checking: Iterates between web search, document reading, and calculator calls until every figure is verified.
- Automated Troubleshooting: Observes error logs, forms hypotheses, inspects targeted files, and narrows down root causes.