ReAct (Reasoning and Acting) is a prompting and agent framework that synergistically interleaves verbalized reasoning traces with actionable tool or API calls, enabling a language model to perform dynamic, step-by-step problem-solving while interacting with an external environment. It extends Chain-of-Thought (CoT) prompting by allowing the model to act—such as retrieving information or executing code—based on its internal reasoning, creating a closed-loop system for handling open-world queries that require up-to-date knowledge or precise computation.
