Skip to main content

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, set 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:
  1. Initialize Composio with CrewAI Provider
Code
  1. Create a new Composio Session and retrieve the tools
  1. Authenticating users manually
Composio automatically authenticates the users during the agent chat session. However, you can also authenticate the user manually by calling the authorize method.
Code
  1. Define agent
Code
  1. Execute task
Code
  • More detailed list of tools can be found here