Designing tools
An agent can only use a tool as well as its label lets it. A vague name, a fuzzy parameter or an error code with no explanation sends a capable model the wrong way. Good tool design is interface design for a reader who takes every word literally.
In this lesson you'll learn to
- Write tool names and descriptions that tell a model what the tool does, when to use it and what it returns.
- Design parameters that are hard to misuse, with clear names, enums, formats and required fields.
- Return results and errors a model can act on, and keep them short enough for the context window.
- Choose how many tools to offer and how to group them, and test them with evals.
Create a free account to open this lesson
It's free. You'll get every free lesson, quizzes that save your progress, daily flashcards and streaks.