Action

In AI, an action is a single step an agent takes that affects its environment, such as calling a tool, running a command or clicking a button, as distinct from the text it uses to reason.

The idea comes from classic AI and reinforcement learning, where an agent observes its environment and acts on it. Google's machine learning glossary defines an action in reinforcement learning as the way an agent moves between states of its environment, chosen according to a policy. The full set of actions open to an agent is often called its action space.

In agents built on language models, an action is usually a structured request rather than free text. The model emits a tool call that names a function and its inputs, the software around the model carries it out, and the result goes back to the model so it can decide what to do next. Anthropic's Agent SDK documentation walks through an agent fixing failing tests: it runs the test command, reads two files, edits one and runs the tests again. Each of those is an action. The closing message saying the bug is fixed is not.

The 2022 ReAct paper by Shunyu Yao and colleagues showed that language models do better when they interleave reasoning with actions; in its question answering experiments the model's actions were queries to a simple Wikipedia API. The 2023 CoALA framework splits actions in two. External actions touch the outside world, whether a physical setting, a conversation with people or other agents, or a digital system. Internal actions touch the agent's own memory: retrieving from it, reasoning over it, or writing new information to it.

The distinction matters because text can be thrown away and actions often cannot. Sending an email, deleting a file or paying for something has consequences outside the conversation. That is why agent software lets developers approve, block or log actions before they run. When a story says an agent took actions, the useful questions are which actions, with what permissions, and who checked them.

Common questions

What is an action in an AI agent?

It is one step the agent takes that does something beyond producing text: calling a tool, querying a database, running code, editing a file or clicking on a web page. The model decides on the action, the surrounding software carries it out, and the result is fed back to the model for its next decision.

What is an action space?

The action space is the full set of actions an agent can choose from. In a board game it is every legal move; in a language model agent it is the set of tools and commands the developer has made available. A smaller action space limits both what an agent can achieve and what it can get wrong.

What is the difference between a tool and an action?

A tool is a capability the developer offers the agent, such as a search function or a file editor. An action is one particular use of that tool, with specific inputs at a specific moment. One tool can produce many different actions over the course of a task.

Can AI agents take actions without human approval?

Yes, if they are configured to. Agent frameworks such as Anthropic's Agent SDK offer permission modes ranging from asking for approval before tool calls to running them with no prompts at all, and the documentation advises the no-prompt mode only for isolated environments where the agent cannot affect systems that matter.

Finding more

Search for "action space reinforcement learning", "tool call" or "ReAct reasoning and acting" to see how actions are defined in research and how agent products expose them. Reliable sources include reinforcement learning textbooks, the original papers on arXiv, machine learning glossaries such as Google's, and the developer documentation of agent frameworks, which states exactly which actions an agent can take and how they are approved.

Working out what this means for your business?

Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.