@devries-cameron20 / composio Mirror · read-only / commits / b307b2d13
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 22, 23:15 UTC

Fix doc layout

haxzie committed Jun 24, 2025 at 17:39 UTC b307b2d13d9650007402094d821d8fef3cd5ea8f
3 files changed +58 -94
fern/docs.yml
+3 -3
@@ -101,9 +101,6 @@ navigation:
101 - page: Quickstart
102 path: pages/dist/get-started/quickstart.mdx
103 slug: quickstart
104 - - page: IDE and Agent Setup
105 - path: pages/dist/get-started/dev-setup.mdx
106 - slug: dev-setup
104 - page: Providers
105 path: pages/dist/get-started/providers.mdx
106 slug: providers
@@ -175,6 +172,9 @@ navigation:
172 - page: Migration Guide
173 path: pages/dist/migration-guide.mdx
174 slug: migration
175 + - page: IDE and Agent Setup
176 + path: pages/dist/get-started/dev-setup.mdx
177 + slug: ide-and-agent-setup
178 - tab: examples
179 layout:
180 - section: Getting Started
fern/pages/src/dev-setup.mdx renamed
fern/pages/src/get-started/providers.mdx
+55 -91
@@ -5,10 +5,10 @@ keywords: ''
5 hide-nav-links: false
6 ---
7
8 -Providers in Composio act as bridges between your AI models and external tools. They transform Composio's tools into formats that different AI platforms can understand and use, making it possible to integrate with any AI framework seamlessly.
8 +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.
9
10 -## What are Providers?
11 -Think of providers as translators. Different AI platforms (like OpenAI, Anthropic Claude, or LangChain) expect tools to be formatted in their specific way. Instead of manually converting Composio tools for each platform, providers handle this transformation automatically.
10 +## What are Providers?
11 +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.
12
13 For example:
14 - OpenAI expects tools in a specific JSON schema format with type: "function"
@@ -17,55 +17,6 @@ For example:
17
18 Providers ensure that Composio tools work correctly with your chosen AI platform without you having to worry about the technical details.
19
20 -## How Providers Work
21 -When you get tools from Composio, the provider:
22 -- Takes Composio tools (which have a standardized format)
23 -- Transforms them into your AI platform's expected format
24 -- Returns the formatted tools ready to use with your AI model
25 -
26 -<CodeGroup>
27 -```typescript TypeScript
28 -// This happens automatically behind the scenes
29 -const composioTool = {
30 - slug: "GITHUB_GET_REPO",
31 - description: "Get repository information",
32 - inputParameters: { owner: "string", repo: "string" }
33 -}
34 -
35 -// Provider transforms it to OpenAI format
36 -const openaiTool = {
37 - type: "function",
38 - function: {
39 - name: "GITHUB_GET_REPO",
40 - description: "Get repository information",
41 - parameters: { properties: { owner: { type: "string" }, repo: { type: "string" } } }
42 - }
43 -}
44 -```
45 -</CodeGroup>
46 -
47 -## Available Providers
48 -Composio supports two categories of providers:
49 -
50 -### Non-Agentic Providers
51 -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.
52 -With chat completion APIs, the typical flow is:
53 -
54 -1. You send a message to the AI model along with available tools
55 -2. The AI responds with either a text message or a request to use specific tools
56 -3. If tools are requested, you execute them and send the results back to continue the conversation
57 -
58 -Example providers:
59 -- **OpenAI Provider** - Works with GPT-3.5, GPT-4, and other OpenAI models via their Chat Completions API
60 -- **Anthropic Provider** - Works with Claude models via Anthropic's Messages API
61 -- **Google Provider** - Works with Gemini models via Google's generateContent API
62 -
63 -### Agentic Providers
64 -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.
65 -
66 -- **LangChain Provider** - Works with LangChain framework
67 -- **Vercel Provider** - Works with Vercel AI SDK
68 -- **Mastra Provider** - Works with Mastra framework
20
21 ## Using Providers
22 Here's how you can generate text with various providers using Composio SDK:
@@ -135,6 +86,32 @@ console.log(result)
86 </CodeGroup>
87
88 ### Using a Different Provider
89 +Different providers may require additional packages:
90 +
91 +
92 +<CodeGroup>
93 +```shell Python
94 +# Core SDK (includes OpenAI provider)
95 +pip install composio
96 +
97 +# Additional providers
98 +pip install composio-anthropic
99 +pip install composio-google
100 +pip install composio-langchain
101 +pip install composio-crewai
102 +```
103 +```shell Typescript
104 +# Core SDK (includes OpenAI provider)
105 +npm install @composio/core
106 +
107 +# Additional providers
108 +npm install @composio/anthropic
109 +npm install @composio/google
110 +npm install @composio/langchain
111 +npm install @composio/vercel
112 +```
113 +</CodeGroup>
114 +
115 To use a different provider, specify it when initializing Composio:
116
117 <Tabs>
@@ -243,45 +220,17 @@ asyncio.run(main())
220 </Tabs>
221
222
246 -## Installation
247 -Different providers may require additional packages:
248 -
249 -
250 -<CodeGroup>
251 -```shell Python
252 -# Core SDK (includes OpenAI provider)
253 -npm install @composio/core
254 -
255 -# Additional providers
256 -npm install @composio/anthropic
257 -npm install @composio/google
258 -npm install @composio/langchain
259 -npm install @composio/vercel
260 -```
261 -```shell Typescript
262 -# Core SDK (includes OpenAI provider)
263 -npm install @composio/core
264 -
265 -# Additional providers
266 -npm install @composio/anthropic
267 -npm install @composio/google
268 -npm install @composio/langchain
269 -npm install @composio/vercel
270 -```
271 -</CodeGroup>
223 +## Supported Providers
224 +Composio supports two different types of providers based on the type of AI framework you are using:
225
273 -### Choosing the Right Provider
274 -Select a provider based on your AI platform:
226 +### Non-Agentic Providers
227 +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.
228 +With chat completion APIs, the typical flow is:
229
276 -- **Building with OpenAI models?** → Use OpenAIProvider (default)
277 -- **Using Claude?** → Use AnthropicProvider
278 -- **Working with Gemini?** → Use GoogleProvider
279 -- **Building LangChain agents?** → Use LangChainProvider
280 -- **Using Vercel AI SDK?** → Use VercelProvider
281 -- **Working with Mastra?** → Use MastraProvider
230 +1. You send a message to the AI model along with available tools
231 +2. The AI responds with either a text message or a request to use specific tools
232 +3. If tools are requested, you execute them and send the results back to continue the conversation
233
283 -## Supported Providers
284 -### Chat Completions
234 <CardGroup cols={3}>
235 <Card
236 title="OpenAI Provider"
@@ -306,7 +255,9 @@ Select a provider based on your AI platform:
255 </Card>
256 </CardGroup>
257
309 -### Agentic Frameworks
258 +### Agentic Providers
259 +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.
260 +
261 <CardGroup cols={3}>
262 <Card
263 title="LangGraph Provider"
@@ -345,10 +296,23 @@ Select a provider based on your AI platform:
296 </Card>
297 </CardGroup>
298
348 -<Tip title="Custom Toolsets" icon="puzzle">
349 -Using a framework not supported? Create a [custom provider](/providers/custom)!
299 +<Tip title="Custom Providers" icon="puzzle">
300 +Using a framework not yet supported by Composio? Create a [custom provider](/providers/custom)!
301 </Tip>
302
303 +
304 +### Choosing the Right Provider
305 +Select a provider based on your AI platform:
306 +
307 +- **Building with OpenAI models?** → Use OpenAIProvider (default)
308 +- **Using Claude?** → Use AnthropicProvider
309 +- **Working with Gemini?** → Use GoogleProvider
310 +- **Building LangChain agents?** → Use LangChainProvider
311 +- **Using Vercel AI SDK?** → Use VercelProvider
312 +- **Working with Mastra?** → Use MastraProvider
313 +
314 +
315 +
316 ## Best Practices
317
318 - Choose the right provider for your AI platform from the start