liveBook · Manning

Action

As explained in AI Agents in Action

An agent action is an operation an agent selects or performs to advance a task.

An agent action is an ability that lets an agent use a function, skill, or tool to perform a defined operation. Actions extend an agent beyond conversation: they can call APIs, execute code, inspect generated output, or interact with external systems. Their target and effect clarify whether they complete tasks, explore information, communicate, or change the environment and internal state. section 5.1 section 1.2

Actions can be understood and implemented through several practical distinctions:

  • Treat plugins as proxies that encapsulate abilities such as API calls or website scraping, while actions provide those abilities. section 5.1
  • Generate actions manually, recall them from memory, or follow predefined plans. section 1.2 section 1.6
  • Expose actions as skills, tools, functions, or custom actions; terminology varies across agent frameworks. section 4.1.2 section 5.1
  • Use sequential actions when later tasks depend on earlier results, and parallel actions when tasks can run simultaneously. section 11.6

A custom file-saving action

A Playground assistant can expose a save_file function that accepts a filename and content, writes the content into an output folder, and reports success. Decorating the function with agent_action and placing it in the assistant_actions folder makes it available when the Playground starts. The same pattern supports additional custom actions, provided each function has a useful name and documentation. section 6.2.2

Figure 1.5 The aspects of agent actions we’ll explore in this book
figure

Use the action overview to compare action targets, effects, and generation methods within an agent system. section 1.2

How AI Agents in Action covers it

How deep it goes
Explains action definitions, plugin relationships, generation methods, framework terminology, custom code, and sequential-versus-parallel execution.
Examples
Demonstrates movie recommendations, image inspection, file saving, FastAPI services, daily-task retrieval, data analysis, and planned information gathering.
What it assumes
Introduces actions from basic definitions while assuming no specific framework terminology or implementation background.
What you can do after
Builds custom actions, attaches them to assistants, connects external services, and chooses sequential or parallel execution for multistep goals.
How it connects
Connects actions with agents, tools, skills, functions, plugins, APIs, planning, feedback, and external services.

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. The section links point to the parts of the book it draws on.