What are Providers?
Providers transform Composio tools into framework-specific formats:- OpenAI: OpenAI function calling format
- Anthropic: Claude tool use format
- Vercel AI SDK: Vercel AI tool format
- LangChain: DynamicStructuredTool
- LlamaIndex: LlamaIndex tool format
- Google GenAI: Google function declarations
- Mastra: Mastra tool format
- Cloudflare: Cloudflare Workers AI format
Quick Start
- OpenAI
- Anthropic
- Vercel AI SDK
Available Providers
OpenAI
OpenAI GPT-4 and function calling
OpenAI Agents
OpenAI Agents SDK (Swarm)
Anthropic
Claude with tool use
Vercel AI SDK
Vercel AI SDK integration
LangChain
LangChain.js tools
LlamaIndex
LlamaIndex.TS tools
Google GenAI
Google Gemini integration
Mastra
Mastra.ai framework
Cloudflare
Cloudflare Workers AI
Custom Provider
Build your own provider
Provider Types
Agentic Providers
Agentic providers handle tool execution automatically:- LangChain: Tools execute when agents call them
- LlamaIndex: Tools execute during agent runs
- Vercel AI SDK: Tools execute in the AI SDK flow
- Mastra: Tools execute in Mastra workflows
Non-Agentic Providers
Non-agentic providers require manual tool execution:- OpenAI: You handle tool calls from the response
- Anthropic: You process tool_use blocks
- Google GenAI: You handle function calls
- Cloudflare: You process tool calls
Choosing a Provider
| Use Case | Recommended Provider |
|---|---|
| Production apps with OpenAI | OpenAI |
| Claude-based applications | Anthropic |
| Next.js with streaming | Vercel AI SDK |
| Complex agent workflows | LangChain |
| RAG and retrieval | LlamaIndex |
| Google Gemini | Google GenAI |
| Modern AI frameworks | Mastra |
| Edge deployment | Cloudflare |
| Custom requirements | Custom Provider |
Provider Configuration
Some providers accept configuration options:Multiple Providers
You can use multiple providers in the same application:Default Provider
If no provider is specified,OpenAIProvider is used by default:
Next Steps
OpenAI Provider
Get started with OpenAI
Anthropic Provider
Use Claude with tools
Vercel AI SDK
Build with Vercel AI
Custom Provider
Create your own provider