Chapter 12 · Tools, agents and harnesses2022
Reason + act (ReAct)
Interleaving reasoning and actions lets an agent plan, try, and adjust based on what it sees.
Preparing react: reason and act
Chapter 12 · Tools, agents and harnesses2022
Interleaving reasoning and actions lets an agent plan, try, and adjust based on what it sees.
lookup_fare("bus")lookup_fare("train")A thought says what to do next.
Writing the reasoning down between actions is what lets an agent adjust when the world answers back.
A model that only reasons, without looking anything up, may build a tidy argument on a guess.
The cards are shuffled. Use the arrows to put them in an order where each card follows from the one before. Then press Check.
weather("Mumbai")Two tiny fixed tasks with made-up numbers and weather. A real ReAct agent writes its own thoughts and chooses its own tools.
What does ReAct combine?
What usually comes right after an action in a ReAct trace?
Why is a written trace useful?