How to build an AI agent that actually works

An AI agent is a loop, not a prompt: a model, a set of tools, and a stopping rule. Here is the architecture that holds up in production — and the failure modes that sink most first attempts.