Learning on Web Dev Open is free for all.

AI-Native Products > Structure, tools and the agent you did not needWriting a tool a model can actually use
Phase 08Structure, tools and the agent you did not need401 of 434

Writing a tool a model can actually use

Good tools are named like verbs, take few arguments, return small readable results, and fail with an error the model can act on.

Build40 minAI inside

Build this in your own editor

This one runs on your machine rather than in the browser workbench. Work to the outcomes below, then come back and mark it complete.

You should now be able to

  • Design tool schemas that reduce wrong calls
  • Return errors that lead to a correct retry
  • Keep tool results small enough to be worth including
Ask the community

Loading…