WikiAgent

ReAct

Meaning

An agent working pattern that alternates reasoning and acting, from the words reasoning and acting. The agent writes a short reason, takes one action through a tool, reads the result, then reasons again before the next action. This pattern makes the steps of an agent easier to follow and check than an agent that acts without a thinking trail.

Example of use

A ReAct agent writes down why it needs the latest prices, calls a search tool, then composes its answer from what comes back.