Adding Custom Tools
Learn how to extend the capabilities of your SWE agents by adding custom tools.
Adding Custom Tools
Custom tools allow you to enhance the functionality of your SWE agents by integrating new capabilities. Adding a custom tool is as simple as writing a new Python function.
Example: Adding a ‘Cow Say’ Tool
Here’s an example of how to add a custom tool using the @action
decorator from Composio:
Dependency Management
When adding custom tools, ensure that you manage dependencies appropriately. The requires
parameter allows you to specify any external libraries needed by your tool.
Integrating Custom Tools
Once you’ve added your custom tool, you can integrate it into your toolset as follows:
Using Custom Tools in Your Agents
After integrating your custom tools, you can use them directly in your agents’ code, enhancing their capabilities and enabling them to perform a wider range of tasks.
Was this page helpful?