Agents and Tool Use

7 tutorials· Ordered reading path

An agent is a model that can call tools, and the code that lets it do so is a loop of about thirty lines. This path builds that loop with no framework, then adds the five things a real deployment needs: a contract the model cannot violate, a retriever that finds the right document, a security model for the untrusted text those documents contain, a wire protocol so the tools come from somewhere other than your own codebase, and the arithmetic that decides whether a second agent is worth its calls.

Every tutorial runs against a deterministic stand-in model rather than a live API, so the numbers reproduce exactly, nothing costs anything, and no API key is required. Read them in order: each one attacks or extends the agent built in the one before it.

Related Tools

Stay in the loop

Get notified when new tutorials and deep-dives are published. No spam, unsubscribe anytime.

Agents FAQ

Common questions about this topic