Tools as capabilities
Agents act by invoking capabilities. Representing actions as tools allows behavior to be structured, reusable, and explicit in code.
- Defining tools as functions — Implementing actions as callable functions.
- Invoking tools dynamically — Selecting and calling tools programmatically.
- Handling tool outcomes — Interpreting results and updating state.