Providers
Providers in Composio act as bridges between your AI models and external tools. They transform Composio’s tools into formats that different AI frameworks can understand and use, making it possible to integrate with any AI framework seamlessly.
What are Providers?
Think of providers as translators. Different AI frameworks (like OpenAI, Anthropic Claude, or LangChain) expect tools to be formatted in their specific way. Instead of manually converting Composio tools for each framework, providers handle this transformation automatically.
For example:
- OpenAI expects tools in a specific JSON schema format with type: “function”
- Anthropic Claude expects tools with an input_schema structure
- LangChain expects tools as callable functions with specific parameters
Providers ensure that Composio tools work correctly with your chosen AI platform without you having to worry about the technical details.
Using Providers
Here’s how you can generate text with various providers using Composio SDK:
Default Provider (OpenAI)
If you don’t specify a provider, Composio uses the OpenAI provider by default:
Using a Different Provider
Different providers may require additional packages:
To use a different provider, specify it when initializing Composio:
OpenAI (Default)
Anthropic
Vercel AI SDK
Mastra
OpenAI Agents
OpenAI is a completion provider. You can use it to generate text, function calls.
Supported Providers
Composio supports two different types of providers based on the type of AI framework you are using:
Non-Agentic Providers
These providers work with AI platforms that use chat completion APIs, where you control the tool execution flow. The AI model analyzes your conversation and suggests which tools to use, but your code decides when and how to execute them. With chat completion APIs, the typical flow is:
- You send a message to the AI model along with available tools
- The AI responds with either a text message or a request to use specific tools
- If tools are requested, you execute them and send the results back to continue the conversation
Integrate with OpenAI’s tool calling and agents.
Use Anthropic’s Claude models with Composio tools.
Integrate with Google’s Gemini models.
Agentic Providers
These providers work with AI frameworks that can execute tools autonomously. The AI agent can decide to run tools on its own without your direct intervention.
Add tools to LangGraph agent flows.
Enable tool calling in CrewAI multi-agent systems.
Use Composio tools with Vercel’s AI SDK.
Add tools to OpenAI’s new Agents API.
Use Composio tools with Mastra agent framework.
Custom Providers
Using a framework not yet supported by Composio? Create a custom provider!