What is a ReAct Agent?
A ReAct agent follows the Reasoning + Acting paradigm, alternating between thinking steps (reasoning about what to do) and action steps (executing tools or API calls), using observations from actions to inform subsequent reasoning.
WHY IT MATTERS
The ReAct pattern, introduced by Yao et al. in 2022, solved a key limitation of pure reasoning — language models could think about what to do but couldn't verify their reasoning against reality. ReAct interleaves thought and action.
A ReAct agent might think: 'I need to check the current ETH price' → act: call price API → observe: $3,200 → think: 'This is below my buy threshold' → act: execute swap → observe: transaction confirmed. Each observation grounds the next reasoning step.
This think-act-observe loop is now the dominant agent pattern. Most agent frameworks implement some variant of ReAct, whether they call it that or not. It's particularly effective for tasks that require real-world information to make decisions.
HOW POLICYLAYER USES THIS
PolicyLayer intercepts the 'act' phase of ReAct loops when financial actions are involved. The agent can reason freely, but every financial action must pass through policy validation before execution — adding a policy check between 'think' and 'act.'