ReAct
A prompting pattern in which a model alternates reasoning steps with actions, such as tool calls, and reads each observation before continuing.
In more detail
Yao and colleagues introduced ReAct in 2022. It is the pattern behind most agent loops: the model reasons about what it needs, calls a tool, observes the result and repeats until it can answer.
Related terms
- agent loop — The cycle at the heart of an agent: the model reasons and requests tools, your code runs them, and the results go back until the model finishes or a limit stops it.
- tool call — A model's structured request to run one tool with given arguments, returned instead of, or alongside, text.
- chain of thought — Prompting a model to write out intermediate reasoning steps before its final answer.
Taught in
- Reasoning Techniques — AI Engineering: LLM Apps, RAG & Agents
- The Agent Loop — AI Engineering: LLM Apps, RAG & Agents
- Planning, Memory And Many Agents — AI Engineering: LLM Apps, RAG & Agents