Skip to content

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)

Sushmithamallesh896d5f15b910
diff --git a/docs/content/docs/quickstart.mdx b/docs/content/docs/quickstart.mdx
index 5a6c1600b..b25466798 100644
--- a/docs/content/docs/quickstart.mdx
+++ b/docs/content/docs/quickstart.mdx
@@ -268,146 +268,6 @@ console.log(`✅ Received response from Claude`);
</Steps>
</FrameworkOption>
-<FrameworkOption id="langchain" name="LangChain" logo="/images/providers/langchain-logo.svg">
-<Steps>
-<Step>
-### Install
-
-Install the Composio SDK along with LangChain and its dependencies.
-
-<Tabs groupId="language" items={['Python', 'TypeScript']} persist>
-<Tab value="Python">
-```bash
-pip install composio langchain langchain-openai langchain-mcp-adapters
-```
-</Tab>
-<Tab value="TypeScript">
-```bash
-npm install @composio/core langchain @langchain/openai @langchain/mcp-adapters
-```
-</Tab>
-</Tabs>
-</Step>
-
-<Step>
-### Configure API Keys
-
-<Callout type="info">
-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).
-</Callout>
-
-```txt title=".env"
-COMPOSIO_API_KEY=xxxxxxxxx
-OPENAI_API_KEY=xxxxxxxxx
-```
-</Step>
-
-<Step>
-### Create session and run agent
-
-[Sessions](/tool-router/users-and-sessions) are ephemeral, user-scoped and manage connections and tools for that user.
-
-<Callout type="info">
-Replace the sample user ID with your own user's identifier. See [User Management](/docs/user-management) for details.
-</Callout>
-
-<Tabs groupId="language" items={['Python', 'TypeScript']} persist>
-<Tab value="Python">
-```python
-from composio import Composio
-from langchain.agents import create_agent
-from langchain_openai.chat_models import ChatOpenAI
-
-# Initialize Composio
-composio = Composio()
-
-external_user_id = "user_2nFh83Hd"
-recipient_email = "[email protected]"
-
-# Create a tool router session
-session = composio.create(
- user_id=external_user_id,
-)
-
-# Get tools from the session (native)
-tools = session.tools()
-
-# Initialize LangChain model
-model = ChatOpenAI(model="gpt-4o")
-
-# Create agent
-agent = create_agent(
- tools=tools,
- model=model,
-)
-
-# Run the agent
-result = agent.invoke(
- {
- "messages": [
- {
- "role": "user",
- "content": f"Send an email to {recipient_email} with the subject 'Hello from Composio' and the body 'This is a test email!'",
- }
- ]
- }
-)
-
-print("✅ Email sent successfully!")
-print(result)
-```
-</Tab>
-<Tab value="TypeScript">
-```typescript
-import { ChatOpenAI } from "@langchain/openai";
-import { createAgent } from "langchain";
-import { Composio } from "@composio/core";
-
-// Initialize Composio
-const composio = new Composio();
-
-const externalUserId = "user_2nFh83Hd";
-const recipientEmail = "[email protected]";
-
-// Create a tool router session
-const session = await composio.create(externalUserId);
-
-// Initialize LangChain model
-const llm = new ChatOpenAI({
- model: "gpt-4o",
-});
-
-// Get tools from the session (native)
-const tools = await session.tools();
-
-// Create agent
-const agent = createAgent({
- name: "Gmail Assistant",
- systemPrompt: "You are a helpful gmail assistant.",
- model: llm,
- tools: tools,
-});
-
-// Run the agent
-console.log(`🔄 Running agent...`);
-const result = await agent.invoke({
- messages: [
- {
- role: "user",
- content: `Send an email to ${recipientEmail} with the subject 'Hello from Composio' and the body 'This is a test email!'`,
- },
- ],
-});
-
-console.log(`✅ Received response from agent`);
-console.log(result);
-```
-</Tab>
-</Tabs>
-</Step>
-</Steps>
-</FrameworkOption>
-
<FrameworkOption id="vercel-ai" name="Vercel AI" logo="/images/providers/vercel-logo.svg">
<Steps>
<Step>
diff --git a/docs/package.json b/docs/package.json
index 30215e8dd..34ba27636 100644
--- a/docs/package.json
+++ b/docs/package.json
@@ -47,7 +47,6 @@
"@composio/vercel": "^0.4.0",
"@google/genai": "^1.35.0",
"@langchain/core": "^1.1.12",
- "langchain": "^0.3.0",
"@langchain/langgraph": "^1.0.15",
"@langchain/openai": "^1.2.1",
"@llamaindex/openai": "^0.4.22",