File size: 366 Bytes
5fa1a76
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
We'll start by loading the custom tools with the convenient [load_tool] function:

from transformers import load_tool
controlnet_transformer = load_tool("diffusers/controlnet-canny-tool")
upscaler = load_tool("diffusers/latent-upscaler-tool")

Upon adding custom tools to an agent, the tools' descriptions and names are automatically
included in the agents' prompts.