Creating Tools with @tool
The simplest way to create a custom tool is using the @tool decorator.
Learning Objectives
Lesson Outline
The simplest way to create a custom tool is using the @tool decorator.
The docstring is critical - agents use it to understand when and how to use the tool: