Agentic Engineering from First Principles All chaptersLecturesLabDownload the book
Part IV · Agents Working Together

Chapter 17: An Agent Is Just Another Tool

Central questionWhat changes when one agent can invoke another agent, through the same action interface used for ordinary tools? Multi-agent systems can sound like a whole new field. In this lecture we'll see that they start from something we already have. By the end, you will have wrapped a child agent as a tool, watched it hide a loop from its parent, and you'll know which limits must cross the delegation boundary.

Lecture

Chapter principle

Multi-agent systems begin when an agent becomes a capability exposed to another controller. The figure shows the transition. In chapter five, an agent called a tool. In chapter seventeen, an agent calls an agent-as-tool. The outer contract is the same: select, invoke, observe. The novelty is inside the capability.

Key takeaways

Experiments

Every experiment in the book is small, runnable and printed with its real output. In the Lab you can replay a recorded real run of each one, with no programming, and watch what the model and the agent do.

Experiment 31: Agent as tool

What happens when one agent hands part of its job to another agent?

A parent agent must find a value X in company reports, then calculate X × 1.10. It has a calculator and a researcher. The researcher is a complete second agent with its own model, a search tool and a limit of 5 steps, and the parent calls it like any tool. This happens three times: the reports contain X; the reports contain nothing; each report only points to the next one. This is a recorded run of real models. A new run may search differently.

All the code for this chapter: github.com/agentic-engineering-book/code

This is Chapter 17 of Agentic Engineering from First Principles: thirty chapters, a case study and fifty-nine executable experiments, from a single model call to controlled, self-improving agents.
Download the bookBrowse all chapters
← Chapter 16: ParallelismChapter 18: Supervisor and Workers →