Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
fix(docs): remove LangChain from quickstart (type issues)
Sushmithamallesh committed
Jan 22, 2026 at 01:03 UTC
896d5f15b9109e5adf88c467043ed7bf0e29d62a
2 files changed
-141
docs/content/docs/quickstart.mdx
-140
@@ -268,146 +268,6 @@ console.log(`✅ Received response from Claude`);
268
</Steps>
269
</FrameworkOption>
270
271
-<FrameworkOption id="langchain" name="LangChain" logo="/images/providers/langchain-logo.svg">
272
-<Steps>
273
-<Step>
274
-### Install
275
-
276
-Install the Composio SDK along with LangChain and its dependencies.
277
-
278
-<Tabs groupId="language" items={['Python', 'TypeScript']} persist>
279
-<Tab value="Python">
280
-```bash
281
-pip install composio langchain langchain-openai langchain-mcp-adapters
282
-```
283
-</Tab>
284
-<Tab value="TypeScript">
285
-```bash
286
-npm install @composio/core langchain @langchain/openai @langchain/mcp-adapters
287
-```
288
-</Tab>
289
-</Tabs>
290
-</Step>
291
-
292
-<Step>
293
-### Configure API Keys
294
-
295
-<Callout type="info">
296
-Set `COMPOSIO_API_KEY` with your API key from [Settings](https://platform.composio.dev/?next_page=/settings) and `OPENAI_API_KEY` with your [OpenAI API key](https://platform.openai.com/api-keys).
297
-</Callout>
298
-
299
-```txt title=".env"
300
-COMPOSIO_API_KEY=xxxxxxxxx
301
-OPENAI_API_KEY=xxxxxxxxx
302
-```
303
-</Step>
304
-
305
-<Step>
306
-### Create session and run agent
307
-
308
-[Sessions](/tool-router/users-and-sessions) are ephemeral, user-scoped and manage connections and tools for that user.
309
-
310
-<Callout type="info">
311
-Replace the sample user ID with your own user's identifier. See [User Management](/docs/user-management) for details.
312
-</Callout>
313
-
314
-<Tabs groupId="language" items={['Python', 'TypeScript']} persist>
315
-<Tab value="Python">
316
-```python
317
-from composio import Composio
318
-from langchain.agents import create_agent
319
-from langchain_openai.chat_models import ChatOpenAI
320
-
321
-# Initialize Composio
322
-composio = Composio()
323
-
324
-external_user_id = "user_2nFh83Hd"
325
-recipient_email = "soham.g@composio.dev"
326
-
327
-# Create a tool router session
328
-session = composio.create(
329
- user_id=external_user_id,
330
-)
331
-
332
-# Get tools from the session (native)
333
-tools = session.tools()
334
-
335
-# Initialize LangChain model
336
-model = ChatOpenAI(model="gpt-4o")
337
-
338
-# Create agent
339
-agent = create_agent(
340
- tools=tools,
341
- model=model,
342
-)
343
-
344
-# Run the agent
345
-result = agent.invoke(
346
- {
347
- "messages": [
348
- {
349
- "role": "user",
350
- "content": f"Send an email to {recipient_email} with the subject 'Hello from Composio' and the body 'This is a test email!'",
351
- }
352
- ]
353
- }
354
-)
355
-
356
-print("✅ Email sent successfully!")
357
-print(result)
358
-```
359
-</Tab>
360
-<Tab value="TypeScript">
361
-```typescript
362
-import { ChatOpenAI } from "@langchain/openai";
363
-import { createAgent } from "langchain";
364
-import { Composio } from "@composio/core";
365
-
366
-// Initialize Composio
367
-const composio = new Composio();
368
-
369
-const externalUserId = "user_2nFh83Hd";
370
-const recipientEmail = "soham.g@composio.dev";
371
-
372
-// Create a tool router session
373
-const session = await composio.create(externalUserId);
374
-
375
-// Initialize LangChain model
376
-const llm = new ChatOpenAI({
377
- model: "gpt-4o",
378
-});
379
-
380
-// Get tools from the session (native)
381
-const tools = await session.tools();
382
-
383
-// Create agent
384
-const agent = createAgent({
385
- name: "Gmail Assistant",
386
- systemPrompt: "You are a helpful gmail assistant.",
387
- model: llm,
388
- tools: tools,
389
-});
390
-
391
-// Run the agent
392
-console.log(`🔄 Running agent...`);
393
-const result = await agent.invoke({
394
- messages: [
395
- {
396
- role: "user",
397
- content: `Send an email to ${recipientEmail} with the subject 'Hello from Composio' and the body 'This is a test email!'`,
398
- },
399
- ],
400
-});
401
-
402
-console.log(`✅ Received response from agent`);
403
-console.log(result);
404
-```
405
-</Tab>
406
-</Tabs>
407
-</Step>
408
-</Steps>
409
-</FrameworkOption>
410
-
271
<FrameworkOption id="vercel-ai" name="Vercel AI" logo="/images/providers/vercel-logo.svg">
272
<Steps>
273
<Step>
docs/package.json
-1
@@ -47,7 +47,6 @@
47
"@composio/vercel": "^0.4.0",
48
"@google/genai": "^1.35.0",
49
"@langchain/core": "^1.1.12",
50
- "langchain": "^0.3.0",
50
"@langchain/langgraph": "^1.0.15",
51
"@langchain/openai": "^1.2.1",
52
"@llamaindex/openai": "^0.4.22",