liveBook · Manning

Action

As explained in AI Agents in Action, Second Edition

An action is an operation an AI agent performs that can affect its environment or internal state.

An action is what an agent does to pursue a goal. It may use a tool, find a resource, hand off to another agent, affect the external world, or change internal state. A tool supplies a capability; the action is the agent’s use of that capability. section 3.3 section 2.4.1

Classify actions by what they help the agent accomplish:

  • Retrieve context by searching, querying a vector store, reading a file, or calling a read-only API without changing external state. section 1.3.2
  • Complete tasks by taking actions in the world; support reasoning and planning, knowledge and memory, or feedback and evaluation through additional tool categories. section 1.3.2
  • Execute actions inside a sense-plan-act-learn loop: sense state, plan, act, evaluate the result, update state, and stop when the goal or termination condition is reached. section 9.1.1

Research planning action

A research-planning agent can first call get_research_sources(), then build a plan constrained to those sources. The function is a tool; calling it is the action. Internal functions can be registered with @function_tool, while external actions can be exposed through MCP. Use in-process calls for internal logic and MCP when a capability belongs to another service, team, deployment unit, or multiple agents. section 2.4.1 section 3.3

Figure 9.1 The core agentic loop. The agent cycles through sense, plan, act, and evaluates the steps until the goal is satisfied or a termination condition is triggered. Internal state accumulates across iterations, giving each cycle more context than the last.

Trace how action connects planning, tools, evaluation, internal state, and termination across repeated agent iterations. section 9.1.1

How AI Agents in Action, Second Edition covers it

How deep it goes
Explains action categories, tool boundaries, deployment choices, and loop execution, but stops short of model internals.
Examples
Uses context retrieval, get_research_sources(), MCP servers, and the repeated sense-plan-act-learn loop as concrete examples.
What it assumes
Assumes basic agent goals and tools, while defining the distinction between a capability and the agent’s use of it.
What you can do after
Apply it via tool calls and agent loops while choosing boundaries, validating results, and defining termination conditions.
How it connects
Connects actions with tools, planning, memory, evaluation and feedback, MCP, internal state, and termination conditions.

Also explained in

Compare how 13 books explain action →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of AI Agents in Action, Second Edition. The section links point to the parts of the book it draws on.