Action (Agent)
Everything an agent does that leaves a mark outside its own text — opening a file, calling a weather API, sending an email, clicking a button in a browser — arrives as a single action. It is the point where reasoning stops being a suggestion and becomes a change.
How an action is produced and run
The model never acts directly. It emits a structured request — a tool name plus arguments that must match a declared schema — and the surrounding runtime executes it, then feeds the result back as an observation appended to the context. That alternation is the act step of the plan–act–observe loop ReAct made standard, and the unit that frameworks such as LangGraph schedule, retry and log. The actions available at any moment are the agent's action space, fixed entirely by which tools have been registered — nothing else is reachable.
Where actions go wrong
The shape of an action call is easy to get right and its content is not:
- Arguments are filled in plausibly but wrongly — a correctly formed call against the wrong record.
- A failing action is retried on every pass of the loop until the step budget or the spend cap is exhausted.
- An irreversible action — a payment, a deletion, a production deploy — executes before anyone reviews it, which is why such calls are routed through an approval gate instead.
Why it matters
A single model call can only produce words; actions are what let an agent finish work. Precisely because of that, every control an operator holds — permission scoping, sandboxing, audit logging, cost caps — attaches to the action, not to the reasoning behind it.
An action is a single concrete operation an agent emits to change or query its environment — a tool call, an API request, a file write, a keystroke. It is the output half of the plan–act–observe loop, the point where reasoning becomes effect. Each action produces an observation that feeds the next decision, so the set of available actions defines the limit of what an agent can actually accomplish.
Think about the difference between telling a friend “I really should book that flight” and actually tapping the buy button. The thought is just a thought. The tap changes something. For software working towards a goal on its own, an action is the tap.
A chatbot that only writes text gives you advice. An agent takes actions: it searches a site, saves a file, sends a message, books the seat. Each action is one concrete step, and after every step the software looks at what actually happened before deciding what to do next.
That is also why actions are the part people worry about. Words can be reworded, but a sent email or a deleted file cannot be unsent or undeleted.