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
Built-in Toolkits
Definable includes two built-in toolkits:KnowledgeToolkit
Give agents explicit tools to search a knowledge base on demand.
MCPToolkit
Expose tools from MCP servers to your agents.