Thus, it is imperative that custom tools have | |
a well-written description and name in order for the agent to understand how to use them. | |
Let's take a look at the description and name of controlnet_transformer: | |
py | |
print(f"Description: '{controlnet_transformer.description}'") | |
print(f"Name: '{controlnet_transformer.name}'") | |
gives | |
text | |
Description: 'This is a tool that transforms an image with ControlNet according to a prompt. |