Chapter 18
AI Agents: The Ghosts in Our Machines
IN THIS CHAPTER
Understanding types of AI agents
Writing AI agent programs in Python
Exploring the limitations of AI agents
In movies, secret agents are moving in the background, doing all sorts of nefarious things and gathering information. They behave like ghosts, moving from one location and piece of information to another. AI agents are like the James Bond of computers. Running in the background, gathering information and doing special tasks. In this chapter, you explore the different types of AI agents and their limitations as well as try your hand at writing an AI agent program in Python.
Separating Agentic AI from Traditional AI
Agentic AI refers to an AI system that doesn’t just answer a question, but can accomplish a goal on its own using memory, other programs, and multistep planning. Think of an LLM as a single-phase assistant. You ask it a question, and it responds. An agentic AI system is more like a robotic system using advanced tools. You supply it a goal; the agent uses more tools and programs, checks results (much different than an LLM!), and continues until it’s done or gives up. The following sections outline ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access