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
The minimal loop
The simplest pattern has four steps:
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:


