Creating a Toolkit
SubclassToolkit and define tool methods:
@tool is included.
Using a Toolkit
Pass toolkit instances to an agent:Toolkit with Dependencies
Pass shared dependencies that all tools in the toolkit can access:Combining Toolkits and Tools
Agents can use both individual tools and toolkits together:Toolkit Properties
| Property | Type | Description |
|---|---|---|
tools | List[Function] | All tool functions in the toolkit |
name | str | Toolkit name (defaults to the class name) |
dependencies | dict | Shared dependencies dictionary |