Tools

Created by Abhyuday DesaiUpdated , v2Runs 12 min 51 sec
1 view

About this video

The second build of Building AI Agents, and this one is about tools from end to end. The last video gave the agent a single bash tool only because a loop needs at least one to run; here tools are the subject. The loop itself does not change at all. Everything the agent gains comes from what you hand it and how you describe it. The task makes that concrete: md2html has to turn GitHub's emoji shortcodes into emoji, GitHub's full list lives on the web, and bash alone cannot reach it.

You'll see:

  • What a tool is to a model: a name, a description and its arguments, and why the model reads that schema instead of your Python
  • The decorator that generates the schema from a function's own signature and attaches it to the function, so defining a new tool is writing one plain function
  • What a tool has to guard: safe path, which keeps every read and write inside the sandbox, and the caps that stop one call from filling the context
  • How tools reach the model: the registry, the name-to-function lookup, the list of schemas, and the tools going along on every turn
  • The eight tools this agent ends up with, and the two jobs tools do: bringing in context, and taking action
  • A real run where the sandbox check refuses a fetch, the agent adapts, and the feature ends up working offline
  • How far the idea extends: a vector search over a knowledge base, records from a database, sending mail, updating another system, and why you give an agent only what a task needs

The next video gives the agent skills: instructions it loads only when a task needs them.

What changed

  1. v206 Oct 2026abhydesai12 min 51 secbe9e224

    The write tool is now explained where its code is opened. The previous version skipped it as already seen, which left the one tool the schema section used as its example never walked through. The video now also says why grep is worth its own tool when bash can already run grep: it skips cache folders and stops at fifty matches, so the model's context does not fill up. Other changes are pacing.

    Same chapters. Transcript: 2 of 127 lines changed. 5 sec longer.

    Show the differencesHide the differences
    1. Let's start with write, because we were just looking at it.

      You have seen this one already, so we won't explain it again. But there's one line worth stopping on.

      Let's start with write, our example from earlier in this video.

      Given a path and the content, it writes the content to that file. One line here is worth stopping on.

    0 views0 likes on this version
  2. v106 Oct 2026abhydesai12 min 46 sec1c0d77e

    First published cut

    1 view1 like on this version