ReAct is a prompting pattern where a language model alternates between reasoning steps («I need the current exchange rate») and actions (calling a search tool or API), then uses the returned observations to reason again. This loop of think, act, observe is the backbone of many AI agents. For example, an agent handling orders for a Casablanca distributor might reason about which warehouse to check, call the inventory API, read the result, and only then confirm delivery.