All videosAI agents0:32

The anatomy of an agent

How an AI agent works internally: context, planning, tools, memory, state, and runtime. A tool call is a contract, not magic.

Links containing ?t= open the video at a specific second.

Video summary

The ideas to retain

01

The minimal loop

The simplest pattern has four steps:

02

Tool calling: from text to a contract

A tool should not be presented to the model as a vague sentence such as “you can query the system.” It needs an explicit contract:

03

Context, memory, and state are not the same thing