How an AI agent uses tools
How AI agents work, explained · 2 of 12
A model cannot run anything itself. It writes a short structured request, a program runs it, and the answer returns as plain text. This article shows that round trip step by step, with a real failure from our own tool-calling model.