Tools
Composio Tool
Composio provides 250+ production-ready tools for AI agents with flexible authentication management.
ComposioToolSet
Description
Composio is an integration platform that allows you to connect your AI agents to 250+ tools. Key features include:
- Enterprise-Grade Authentication: Built-in support for OAuth, API Keys, JWT with automatic token refresh
- Full Observability: Detailed tool usage logs, execution timestamps, and more
Installation
To incorporate Composio tools into your project, follow the instructions below:
After the installation is complete, either run composio login
or export your composio API key as COMPOSIO_API_KEY
. Get your Composio API key from here
Example
The following example demonstrates how to initialize the tool and execute a github action:
- Initialize Composio toolset
Code
- Connect your GitHub account
- Get Tools
- Retrieving all the tools from an app (not recommended for production):
Code
- Filtering tools based on tags:
Code
- Filtering tools based on use case:
Code
Set
advanced
to True to get actions for complex use cases- Using specific tools:
In this demo, we will use the GITHUB_STAR_A_REPOSITORY_FOR_THE_AUTHENTICATED_USER
action from the GitHub app.
Code
Learn more about filtering actions here
- Define agent
Code
- Execute task
Code
- More detailed list of tools can be found here
Was this page helpful?