Tool Definition
Domain: Tools & Function Calling
π― Motivation
Before an agent can use a tool, you must define it: name, description, parameters, and return type. The model uses this to decide when and how to call it.
π Concrete Example
Define: get_weather(city: str, unit: str=C) -> str. Description: βGet current weather for a city.β The model sees this definition and knows it can check weather.
π Analogy
A tool catalog in a workshop - each tool has a label: βHammer - for driving nails. Input: nail + surface. Output: nail driven in.β The catalog tells workers what each tool does and how to use it.