← Back to Glossary
ReAct (Reason + Act)
Reasoning and Acting
An agent prompting pattern that alternates between explicit reasoning steps ('Thought') and tool actions ('Action').
Why it exists
Interleaving reasoning and acting enables agents to plan, evaluate intermediate tool outputs, and dynamically adapt execution paths.
How it works
Loops: 1) Thought: 'I should search for X', 2) Action: search(X), 3) Observation: Result text, 4) Thought: 'Now I can calculate...'.