Flashcard: in the agent loop, what counts as an 'action' and how is it different from a thought?
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
An action is a step that touches the world or fetches new information; a thought is internal reasoning. In ReAct, the model alternates them so the runtime can execute actions and let thoughts pass through.
Imagine writing a recipe out loud. 'I think the dough needs more flour' is a thought. 'I add half a cup of flour' is an action. The first one is talking about what to do; the second one is actually doing it. An LLM agent works the same way. When the model writes 'I should search the database for recent orders,' that is a thought: it has not searched anything yet. When the model emits a structured tool call to the database, that is an action: the runtime sees it and actually runs the query. Thoughts help the model plan and explain itself. Actions are what change something or bring back fresh information.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
5 min: define action as a side-effect causing or information-fetching step, define thought as internal reasoning, walk through ReAct's explicit alternation, show how function-calling APIs encode the split structurally, and explain why the action boundary is the safety boundary.
Real products, models, and research that use this idea.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags and common mistakes that signal junior thinking. Click to expand.
Treating the model's reasoning text as an action. Reasoning is a thought; nothing has happened until the model emits a tool call the runtime executes.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.