In the ReAct pattern, what does an agent do?
- Exam domain
- Introduction to AI agents
- Difficulty
- Easy
- In this mock
- 5 questions on this domainPractise this domain
Why D is the answer
It alternates reasoning steps with tool actions and reads each result
ReAct interleaves reasoning and acting: the model thinks about the next step, calls a tool, reads the observation, and repeats until it can answer.
Remember: ReAct: reason, act, observe, repeat.
In detail
- Thought, action, observation, repeat.
- Each tool result shapes the next step.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. It retrains its own weights after each user requestWrong
Agents do not retrain themselves per request.
B. It runs every available tool at once in parallel and then votes on the resultsWrong
ReAct picks one action at a time based on the last observation.
C. It writes all of its reasoning first and calls no tools at allWrong
Reasoning without tools is chain-of-thought, not ReAct.
D. It alternates reasoning steps with tool actions and reads each resultRight
ReAct: reason, act, observe, repeat.
Use case
An illustrative scenario, not a real incident.
Illustrative: a travel agent bot checks flight status, sees a delay, then searches for a later connection before it replies.
See it in different ways
flowchart LR S0["Thought"] --> S1["Action call a tool"] --> S2["Observation"] --> S3["Thought"] --> S4["Final answer"]
How to read this chart
- Read it in order: Thought, then Action call a tool, then Observation, then Thought, then Final answer.
sequenceDiagram participant P0 as Agent participant P1 as Tool P0->>P1: Action with arguments P1-->>P0: Observation
How to read this chart
- 1. Agent sends "Action with arguments" to Tool.
- 2. Agent gets a reply from Tool: "Observation".