Flashcard: in the agent loop, what counts as an 'action' and how is it different from a thought?
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.
Detailed answer & concept explanation~7 min readEverything 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. 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.
- Anthropic's API distinguishes content blocks structurally: type=text blocks are thoughts, type=tool_use blocks are actions. The runtime only executes tool_use blocks.
- the 2022 ReAct paper is the landmark pattern that made the alternation explicit; every modern function-calling API encodes its split structurally.
- Cursor's coding agent prints visible 'thinking' text and then a separate edit_file or run_shell_command action; the editor only executes the action blocks.
- GPT-5.5 with reasoning mode and Claude Opus 4.7 explicitly support extended reasoning text as a separate channel from tool calls, so thoughts can be long without polluting the action surface.
What an interviewer would ask next. Try answering before peeking at the approach.
QWhy did ReAct interleaving improve agent performance over a model that emits tool calls without explicit reasoning?
QHow do extended-reasoning models like Claude Opus 4.7's extended thinking and GPT-5.5 reasoning mode change the thought-action picture?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
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.
Same topic, related formats. Practice these next.