Defining Tools for Agents
Tools are the bridge between your agent's decisions and the real world. A well-defined tool:
- Has a clear, descriptive name
- Documents exactly what it does
- Specifies parameter types and constraints
- Handles errors gracefully
Learning Objectives
Lesson Outline
Tools are the bridge between your agent's decisions and the real world. A well-defined tool:
The LLM uses your descriptions to decide:
Bad description: "Gets order info"
Good description: "Look up the current shipping status, tracking number, and estimated delivery date for a customer order. Use this when a customer asks about their order status."