
056 - What Is an AI Agent Made Of?
Everyone is building AI agents, but what is inside one? This episode of Learn AI in Bits takes an agent apart and walks through the parts it is built from, so "agent" stops sounding like a single piece of software and starts looking like what it is: an architecture. At the center is the language model, which reads the task, decides what it needs, and picks the next action. Around it sit the instructions that define the agent's job and boundaries, and the tools, ordinary software the model can call to search a database, read a file, hit an API, send an email, or run code. The model does not act directly; the surrounding program exposes each tool through a defined interface, and the model has to know what a tool does, what arguments it takes, and what it returns. The piece that separates an agent from a chatbot is the loop. Using a coding-agent example, the episode shows the cycle in action: the model reads a failing test, calls a file-reading tool, runs the test, gets an error back, edits code, and runs it again, over and over until the task is done, a limit is hit, or a human steps in. Around that loop sit state, context management, permissions, guardrails, and observability, the pieces that carry information, restrict what the agent can do, add safety checks, and record what happened. A key idea is the division of responsibility: the model chooses actions, and the harness around it executes them and returns the results. The episode connects this to current platforms, including OpenAI's Agents API and Agents SDK and Anthropic's description of an LLM enhanced with tools, retrieval, and memory operating through a loop. It closes on two practical points: the engineering work in agents is in the decisions around the loop, such as which tools and permissions to grant and when a human should approve an action, and you do not always need an agent, because a fixed workflow that follows a predefined path is often easier to test and cheaper to run than one that decides for itself. Sources & References OpenAI: Introducing the Agents API — https://openai.com/index/introducing-the-agents-api/ OpenAI: The next evolution of the Agents SDK — https://openai.com/index/the-next-evolution-of-the-agents-sdk/ OpenAI: A practical guide to building agents — https://openai.com/business/guides-and-resources/a-practical-guide-to-building-ai-agents/ Anthropic: Building Effective AI Agents — https://www.anthropic.com/engineering/building-effective-agents Anthropic: Writing effective tools for AI agents — https://www.anthropic.com/engineering/writing-tools-for-agents Anthropic: Demystifying evals for AI agents — https://www.anthropic.com/engineering/demystifying-evals-for-ai-agents Voice narration is AI-generated.