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.

feat: add build system to docs

[email protected]a1770b4c3416
diff --git a/.github/workflows/preview_docs.yml b/.github/workflows/preview_docs.yml
index 4f4f9d678..92f89395e 100644
--- a/.github/workflows/preview_docs.yml
+++ b/.github/workflows/preview_docs.yml
@@ -11,9 +11,6 @@ jobs:
container:
image: ghcr.io/composiohq/dev-base:latest
permissions: write-all
- defaults:
- run:
- working-directory: ./fern
env:
COMPOSIO_API_KEY: ${{ inputs.api_key || secrets.COMPOSIO_API_KEY_PROD }}
@@ -21,7 +18,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
- - name: Install local dependencies
+ - name: Install dependencies
run: pnpm install
- name: Install Python Dependencies
@@ -29,19 +26,14 @@ jobs:
uv sync
uv run composio apps generate-types
- - name: Generate Tool Documentation
- run: pnpm tools:generate && pnpm tools:uncomment
-
- - name: Generate SDK Reference
- run: pnpm sdkdocs
-
- name: Install Fern
run: npm install -g fern-api
- - name: Pull Latest OpenAPI Specification
- run: pnpm api:pull
+ - name: Build documentation with Turbo
+ run: turbo run build --filter=fern
- name: Build examples
+ working-directory: ./fern
run: pnpm examples:build
- name: Generate preview URL
@@ -49,14 +41,14 @@ jobs:
env:
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
POSTHOG_API_KEY: ${{ secrets.POSTHOG_API_KEY }}
+ run: turbo run preview --filter=fern -- --log-level debug
+
+ - name: Extract and comment preview URL
+ working-directory: ./fern
run: |
- OUTPUT=$(fern generate --docs --preview 2>&1) || true
- echo "$OUTPUT"
- URL=$(echo "$OUTPUT" | grep -oP 'Published docs to \K.*(?= \()')
- echo "Preview URL: $URL"
- echo "🌿 Preview your docs: $URL" > preview_url.txt
+ echo "🌿 Check the logs above for the preview URL" > preview_url.txt
- name: Comment URL in PR
uses: thollander/[email protected]
with:
- filePath: fern/preview_url.txt
+ filePath: fern/preview_url.txt
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
index baecb4f7e..98f392908 100644
--- a/.gitignore
+++ b/.gitignore
@@ -39,11 +39,13 @@ report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json
# lerna
lerna-debug.log*
-# temp files
-temp
+# fern
fern/tools
fern/apis/openapi.yml
fern/apis/openapi-mcp.json
+fern/pages/
+fern/docs/sdk/
+
# Python cache files
__pycache__/
*.py[cod]
diff --git a/fern/docs.yml b/fern/docs.yml
index 2edf73f39..7261e69f5 100644
--- a/fern/docs.yml
+++ b/fern/docs.yml
@@ -78,11 +78,6 @@ colors:
# border:
# light: "#E0E0E0"
# dark: "#292929"
-experimental:
- mdx-components:
- - ./components
- - ./icons
- disable-stream-toggle: true
analytics:
posthog:
api-key: ${POSTHOG_API_KEY}
@@ -128,71 +123,71 @@ navigation:
skip-slug: true
contents:
- page: Welcome
- path: pages/get-started/welcome.mdx
+ path: pages/welcome.mdx
slug: welcome
- page: Quickstart
- path: pages/get-started/quickstart.mdx
+ path: pages/quickstart.mdx
slug: quickstart
- page: IDE and Agent Setup
- path: pages/get-started/dev-setup.mdx
+ path: pages/dev-setup.mdx
slug: dev-setup
- page: Providers
- path: pages/get-started/providers.mdx
+ path: pages/providers.mdx
slug: providers
- section: Tools
icon: tools
skip-slug: true
contents:
- page: Executing Tools
- path: pages/tool-calling/executing-tools.mdx
+ path: pages/executing-tools.mdx
slug: executing-tools
- page: Authenticating Tools
- path: pages/tool-calling/authenticating-tools.mdx
+ path: pages/authenticating-tools.mdx
slug: authenticating-tools
- page: Fetch and Filter Tools
- path: pages/tool-calling/fetching-tools.mdx
+ path: pages/fetching-tools.mdx
slug: fetching-tools
- section: Modifiers
slug: modifiers
contents:
- page: Schema Modifiers
- path: pages/tool-calling/schema-modifiers.mdx
+ path: pages/schema-modifiers.mdx
slug: schema-modifiers
- page: Before Tool Execution
- path: pages/tool-calling/before-execution-modifiers.mdx
+ path: pages/before-execution-modifiers.mdx
slug: before-execution
- page: After Tool Execution
- path: pages/tool-calling/after-execution-modifiers.mdx
+ path: pages/after-execution-modifiers.mdx
slug: after-execution
- page: Custom tools
- path: pages/tool-calling/custom-tools.mdx
+ path: pages/custom-tools.mdx
slug: custom-tools
- section: Authentication
icon: lock
skip-slug: true
contents:
- page: Custom Auth Configs
- path: pages/authentication/custom-auth-configs.mdx
+ path: pages/custom-auth-configs.mdx
slug: custom-auth-configs
- page: Programmatic Auth Configs
- path: pages/authentication/programmatic-auth-configs.mdx
+ path: pages/programmatic-auth-configs.mdx
slug: programmatic-auth-configs
- page: Custom Auth Parameters
- path: pages/authentication/custom-auth-params.mdx
+ path: pages/custom-auth-params.mdx
slug: custom-auth-params
- section: Triggers
icon: bolt
skip-slug: true
contents:
- page: Using Triggers
- path: pages/triggers/using-triggers.mdx
+ path: pages/using-triggers.mdx
slug: using-triggers
- section: MCP
icon: server
skip-slug: true
contents:
- page: Introduction
- path: pages/mcp/introduction.mdx
+ path: pages/introduction.mdx
slug: mcp-introduction
- tab: examples
layout:
@@ -201,27 +196,27 @@ navigation:
skip-slug: true
contents:
- page: Hello World
- path: pages/examples/dist/hello-world.mdx
+ path: pages/hello-world.mdx
slug: examples/hello-world
- page: Sample Script
- path: pages/examples/dist/sample-script/sample-script.mdx
+ path: pages/sample-script.mdx
slug: examples/sample-script
- page: Sample Webserver
- path: pages/examples/dist/sample-webserver/sample-webserver.mdx
+ path: pages/sample-webserver.mdx
slug: examples/sample-webserver
- section: Full Stack Applications
icon: globe
skip-slug: true
contents:
- page: Full Stack Chat App
- path: pages/examples/dist/vercel-composio.mdx
+ path: pages/vercel-composio.mdx
slug: full-stack-chat-app
- section: Productivity & Automation
icon: zap
skip-slug: true
contents:
- page: Gmail Filterer
- path: pages/examples/dist/gmail-filterer.mdx
+ path: pages/gmail-filterer.mdx
slug: gmail-filterer
- tab: providers
layout:
@@ -229,23 +224,23 @@ navigation:
icon: code
contents:
- page: OpenAI Provider
- path: pages/providers/openai.mdx
+ path: pages/openai.mdx
- page: Anthropic Provider
- path: pages/providers/anthropic.mdx
+ path: pages/anthropic.mdx
- page: LangChain Provider
- path: pages/providers/langchain.mdx
+ path: pages/langchain.mdx
- page: CrewAI Provider
- path: pages/providers/crewai.mdx
+ path: pages/crewai.mdx
- page: Vercel AI SDK Provider
- path: pages/providers/vercel.mdx
+ path: pages/vercel.mdx
- page: Google ADK Provider
- path: pages/providers/google-adk.mdx
+ path: pages/google-adk.mdx
- page: OpenAI Agents Provider
- path: pages/providers/openai-agents.mdx
+ path: pages/openai-agents.mdx
- page: Mastra Provider
- path: pages/providers/mastra.mdx
+ path: pages/mastra.mdx
- page: Custom Provider
- path: pages/providers/custom.mdx
+ path: pages/custom.mdx
- tab: tools
layout:
- section: Tools
diff --git a/fern/pages/authentication/custom-auth-configs.mdx b/fern/docs/authentication/custom-auth-configs.mdx
similarity index 89%
rename from fern/pages/authentication/custom-auth-configs.mdx
rename to fern/docs/authentication/custom-auth-configs.mdx
index 9aa6aa136..0f9fee5b2 100644
--- a/fern/pages/authentication/custom-auth-configs.mdx
+++ b/fern/docs/authentication/custom-auth-configs.mdx
@@ -20,7 +20,7 @@ You'll need to customize the auth config in cases where you want to add in a dif
<Tab title="Example: PostHog">
You may change the subdomain for the PostHog toolkit to match your own instance.
<Frame background="subtle" title="PostHog Auth Config Settings">
-<img src="../../assets/images/custom-auth-posthog.png" />
+<img src="../assets/images/custom-auth-posthog.png" />
</Frame>
</Tab>
<Tab title="Example: Hubspot">
@@ -29,7 +29,7 @@ For Hubspot you may customize everything here. For each auth scheme there is a d
If you choose to use your own developer app for OAuth2 scheme, you will have to provide the client ID and client secret.
<Frame background="subtle" title="Hubspot Auth Config Settings">
-<img src="../../assets/images/custom-auth-hubspot.png" />
+<img src="../assets/images/custom-auth-hubspot.png" />
</Frame>
</Tab>
</Tabs>
@@ -56,12 +56,12 @@ Examples for Google and GitHub:
<Tabs>
<Tab title="Google">
<Frame background="subtle" caption="Google OAuth Configuration">
- <img src="../../assets/images/google-oauth-config.png" />
+ <img src="../assets/images/google-oauth-config.png" />
</Frame>
</Tab>
<Tab title="GitHub">
<Frame background="subtle" caption="GitHub OAuth Configuration">
- <img src="../../assets/images/github-oauth-config.png" />
+ <img src="../assets/images/github-oauth-config.png" />
</Frame>
</Tab>
</Tabs>
@@ -84,7 +84,7 @@ Once you have the OAuth credentials, you can add them to the auth config in the
4. Click **"Create Integration"** once done!
<Frame background="subtle" title="Auth Config Settings">
- <img src="../../assets/images/integration-step-3-0.png" />
+ <img src="../assets/images/integration-step-3-0.png" />
</Frame>
As usual, copy and use the auth config ID starting with `ac_` in your application code via a secret manager.
@@ -106,7 +106,7 @@ connReq.id
console.log(connection);
-```
+````
```python Python maxLines=60
# Create a new connected account
connection_request = composio.connected_accounts.initiate(
@@ -118,7 +118,8 @@ print(connection_request)
# Wait for the connection to be established
connected_account = connection_request.wait_for_connection()
print(connected_account)
-```
+````
+
</CodeGroup>
### White-labeling the OAuth Consent Screen
@@ -126,7 +127,7 @@ print(connected_account)
By default the users will see an OAuth screen like the one below:
<Frame background="subtle" caption="Composio's Domain in OAuth Consent Screen">
- <img src="../../assets/images/oauth-branding.png" />
+ <img src="../assets/images/oauth-branding.png" />
</Frame>
The OAuth redirect URL is surfaced in the some OAuth providers' consent screens. This may cause confusion for some users as that URL is not of the same domain as the application.
@@ -136,7 +137,7 @@ To remediate this:
<Steps>
<Step title="Set the Authorized Redirect URI">
Specify the Authorized Redirect URI to your own domain in the OAuth configuration.
-For example:
+For example:
```
https://yourdomain.com/api/composio-redirect
```
@@ -154,20 +155,21 @@ import type { NextApiRequest, NextApiResponse } from 'next';
export default function handler(req: NextApiRequest, res: NextApiResponse) {
// The target Composio endpoint that handles OAuth callbacks
const composioEndpoint = 'https://backend.composio.dev/api/v3/toolkits/callback';
-
- // Extract and preserve all query parameters
- const queryParams = new URLSearchParams();
- Object.entries(req.query).forEach(([key, value]) => {
- if (typeof value === 'string') {
- queryParams.append(key, value);
- }
- });
-
- // Redirect to Composio with all query parameters intact
- const redirectUrl = `${composioEndpoint}?${queryParams.toString()}`;
- res.redirect(302, redirectUrl);
+
+// Extract and preserve all query parameters
+const queryParams = new URLSearchParams();
+Object.entries(req.query).forEach(([key, value]) => {
+if (typeof value === 'string') {
+queryParams.append(key, value);
}
-```
+});
+
+// Redirect to Composio with all query parameters intact
+const redirectUrl = `${composioEndpoint}?${queryParams.toString()}`;
+res.redirect(302, redirectUrl);
+}
+
+````
```python FastAPI (app.py)
from fastapi import FastAPI
@@ -196,7 +198,7 @@ def authorize_app(toolkit: str):
auth_config_id=auth_config_id,
)
return RedirectResponse(url=connection_request.redirect_url)
-```
+````
</CodeGroup>
</Step>
@@ -204,7 +206,7 @@ def authorize_app(toolkit: str):
Specify the your custom redirect URI in the auth config settings!
<Frame background="subtle" title="Auth Config Settings">
-<img src="../../assets/images/custom-redirect-uri.png" />
+<img src="../assets/images/custom-redirect-uri.png" />
</Frame>
</Step>
</Steps>
diff --git a/fern/pages/authentication/custom-auth-params.mdx b/fern/docs/authentication/custom-auth-params.mdx
similarity index 100%
rename from fern/pages/authentication/custom-auth-params.mdx
rename to fern/docs/authentication/custom-auth-params.mdx
diff --git a/fern/pages/authentication/programmatic-auth-configs.mdx b/fern/docs/authentication/programmatic-auth-configs.mdx
similarity index 100%
rename from fern/pages/authentication/programmatic-auth-configs.mdx
rename to fern/docs/authentication/programmatic-auth-configs.mdx
diff --git a/fern/pages/changelog/2025-06-01.md b/fern/docs/changelog/2025-06-01.md
similarity index 100%
rename from fern/pages/changelog/2025-06-01.md
rename to fern/docs/changelog/2025-06-01.md
diff --git a/fern/pages/examples/src/gmail-filterer.mdx b/fern/docs/examples/gmail-filterer.mdx
similarity index 100%
rename from fern/pages/examples/src/gmail-filterer.mdx
rename to fern/docs/examples/gmail-filterer.mdx
diff --git a/fern/pages/examples/src/hello-world.mdx b/fern/docs/examples/hello-world.mdx
similarity index 100%
rename from fern/pages/examples/src/hello-world.mdx
rename to fern/docs/examples/hello-world.mdx
diff --git a/fern/pages/examples/src/sample-script/sample-script.mdx b/fern/docs/examples/sample-script.mdx
similarity index 88%
rename from fern/pages/examples/src/sample-script/sample-script.mdx
rename to fern/docs/examples/sample-script.mdx
index da59228fc..d0e952f8e 100644
--- a/fern/pages/examples/src/sample-script/sample-script.mdx
+++ b/fern/docs/examples/sample-script.mdx
@@ -17,8 +17,8 @@ pip install composio
Here's a complete Python example that demonstrates the Composio SDK:
-<ExampleCode
- src="fern/pages/examples/src/sample-script/sample-script.py"
+<SnippetCode
+ src="fern/snippets/sample-script/sample-script.py"
startLine={1}
title="Setting up Composio and OpenAI"
highlightStart={17}
diff --git a/fern/pages/examples/src/sample-webserver/sample-webserver.mdx b/fern/docs/examples/sample-webserver.mdx
similarity index 90%
rename from fern/pages/examples/src/sample-webserver/sample-webserver.mdx
rename to fern/docs/examples/sample-webserver.mdx
index ff648e154..b0018b10d 100644
--- a/fern/pages/examples/src/sample-webserver/sample-webserver.mdx
+++ b/fern/docs/examples/sample-webserver.mdx
@@ -34,8 +34,8 @@ In this tutorial, we will create an auth config, initiate a connection, and send
Basic scaffolding for the server.
-<ExampleCode
- src="fern/pages/examples/src/sample-webserver/index.ts"
+<SnippetCode
+ src="fern/snippets/typescript/sample-webserver/index.ts"
startLine={1}
endLine={10}
title="Setup"
@@ -52,8 +52,8 @@ For this example, we will create a basic GMAIL auth config.
You are recommend to store these config ids, so that you can reuse them later.
-<ExampleCode
- src="fern/pages/examples/src/sample-webserver/index.ts"
+<SnippetCode
+ src="fern/snippets/typescript/sample-webserver/index.ts"
startLine={12}
endLine={16}
title="Auth Configs"
@@ -68,8 +68,8 @@ Here we start the connection process, once your user uses the `redirectUrl` from
they will be redirected to the auth flow.
Once they have authorized the connection, you can use the `id` to get and execute the tools as the user.
-<ExampleCode
- src="fern/pages/examples/src/sample-webserver/index.ts"
+<SnippetCode
+ src="fern/snippets/typescript/sample-webserver/index.ts"
startLine={16}
endLine={27}
title="Initiating a connection"
@@ -89,8 +89,8 @@ curl -X POST http://localhost:3000/create-connection \
Now let's send that email.
-<ExampleCode
- src="fern/pages/examples/src/sample-webserver/index.ts"
+<SnippetCode
+ src="fern/snippets/typescript/sample-webserver/index.ts"
startLine={29}
endLine={59}
title="Sending an email"
@@ -109,7 +109,7 @@ curl -X POST http://localhost:3000/send-email \
### Full Code
-You can see the full code [here](https://github.com/ComposioHQ/composio/blob/next/fern/pages/examples/src/sample-webserver/index.ts).
+You can see the full code [here](https://github.com/ComposioHQ/composio/blob/next/fern/snippets/typescript/sample-webserver/index.ts).
### What just happened?
diff --git a/fern/pages/examples/src/vercel-composio.mdx b/fern/docs/examples/vercel-composio.mdx
similarity index 82%
rename from fern/pages/examples/src/vercel-composio.mdx
rename to fern/docs/examples/vercel-composio.mdx
index a7149a900..294046d7e 100644
--- a/fern/pages/examples/src/vercel-composio.mdx
+++ b/fern/docs/examples/vercel-composio.mdx
@@ -1,12 +1,13 @@
---
title: Fully featured AI chatbot with Composio
slug: /examples/vercel
-image: "https://og.composio.dev/api/og?title=Fully%20featured%20AI%20chatbot%20with%20Composio" # image for socials
-keywords: ""
+image: 'https://og.composio.dev/api/og?title=Fully%20featured%20AI%20chatbot%20with%20Composio' # image for socials
+keywords: ''
hide-nav-links: false
---
In this example, you will learn how to build a chatbot that:
+
- Lets users connect their various apps to the chatbot using the Composio SDK.
- Uses the Vercel provider in the Composio SDK to handle and execute tool calls from the LLM.
@@ -14,11 +15,12 @@ This page gives a high-level overview of the Composio SDK and how it is used in
You can find the demo live [here](https://chat.composio.dev/).
-
## Prerequisites
+
Ensure you've followed the README.md in the [composiohq/chat](https://github.com/composiohq/chat) repository to set the project locally.
## Creating auth configs
+
For all the apps you want to connect to the chatbot, you need to create their respective auth configs.
Learn how to create auth configs [here](/docs/authenticating-tools#creating-an-auth-config).
@@ -26,7 +28,7 @@ Learn how to create auth configs [here](/docs/authenticating-tools#creating-an-a
Once done, your auth configs will be available in the [Composio dashboard](https://app.composio.dev/integrations).
<Frame>
- <img src="../../../assets/images/examples/auth-configs.png" alt="Auth configs" />
+ <img src="../assets/images/examples/auth-configs.png" alt="Auth configs" />
</Frame>
### Save auth config IDs to environment variables
@@ -39,6 +41,7 @@ NEXT_PUBLIC_GITHUB_AUTH_CONFIG_ID=ac_1234567890
```
## Create a Composio client instance
+
We create a Composio client instance for server-side operations like, API routes, server components, etc.
```typescript lib/service/composio.ts
@@ -54,12 +57,13 @@ export default composio;
```
## Creating an API for fetching toolkits
+
The Composio SDK is meant to be used only in server-side code. For client-side functionality, we create API endpoints in the `/app/api/` directory.
In order to list the toolkits and their connection status, we create a Next.js API route to fetch the toolkits using Composio SDK.
<Frame>
- <img src="../../../assets/images/examples/toolkits.png" />
+ <img src="../assets/images/examples/toolkits.png" />
</Frame>
### 1. Listing connected accounts
@@ -72,16 +76,13 @@ export async function GET() {
// List connected accounts to get connection IDs for each toolkit
const connectedAccounts = await composio.connectedAccounts.list({
- userIds: [session.user.id],
-});
+ userIds: [session.user.id],
+ });
-const connectedToolkitMap = new Map();
-connectedAccounts.items.forEach((account) => {
- connectedToolkitMap.set(
- account.toolkit.slug.toUpperCase(),
- account.id,
- );
-});
+ const connectedToolkitMap = new Map();
+ connectedAccounts.items.forEach(account => {
+ connectedToolkitMap.set(account.toolkit.slug.toUpperCase(), account.id);
+ });
// ... continue with toolkit fetching ...
}
@@ -98,28 +99,29 @@ export async function GET() {
const SUPPORTED_TOOLKITS = ['GMAIL', 'GOOGLECALENDAR', 'GITHUB', 'NOTION'];
-// Fetch toolkit data from slugs
-const toolkitPromises = SUPPORTED_TOOLKITS.map(async (slug) => {
- const toolkit = await composio.toolkits.get(slug);
- const connectionId = connectedToolkitMap.get(slug.toUpperCase());
-
- return {
- name: toolkit.name,
- slug: toolkit.slug,
- description: toolkit.meta?.description,
- logo: toolkit.meta?.logo,
- categories: toolkit.meta?.categories,
- isConnected: !!connectionId,
- connectionId: connectionId || undefined,
- };
-});
+ // Fetch toolkit data from slugs
+ const toolkitPromises = SUPPORTED_TOOLKITS.map(async slug => {
+ const toolkit = await composio.toolkits.get(slug);
+ const connectionId = connectedToolkitMap.get(slug.toUpperCase());
+
+ return {
+ name: toolkit.name,
+ slug: toolkit.slug,
+ description: toolkit.meta?.description,
+ logo: toolkit.meta?.logo,
+ categories: toolkit.meta?.categories,
+ isConnected: !!connectionId,
+ connectionId: connectionId || undefined,
+ };
+ });
-const toolkits = await Promise.all(toolkitPromises);
-return NextResponse.json({ toolkits });
+ const toolkits = await Promise.all(toolkitPromises);
+ return NextResponse.json({ toolkits });
}
```
## Managing connections
+
Users need to connect and disconnect their accounts from the chatbot to enable tool usage. When users click "Connect" on a toolkit, we initiate an OAuth flow, and when they click "Disconnect", we remove their connection.
### 1. Initiating a connection
@@ -127,10 +129,9 @@ Users need to connect and disconnect their accounts from the chatbot to enable t
When a user wants to connect their account, we create a connection request that redirects them to the OAuth provider:
<Frame>
- <img src="../../../assets/images/examples/create-connection.png" />
+ <img src="../assets/images/examples/create-connection.png" />
</Frame>
-
```typescript app/api/connections/initiate/route.ts
export async function POST(request: Request) {
// ... auth and validation ...
@@ -140,7 +141,7 @@ export async function POST(request: Request) {
// Initiate connection with Composio
const connectionRequest = await composio.connectedAccounts.initiate(
session.user.id,
- authConfigId,
+ authConfigId
);
return NextResponse.json({
@@ -155,7 +156,7 @@ export async function POST(request: Request) {
After initiating a connection, we need to wait for the OAuth flow to complete. We check the connection status to know when it's ready to use:
<Frame>
- <img src="../../../assets/images/examples/connection-status.png" />
+ <img src="../assets/images/examples/connection-status.png" />
</Frame>
```typescript app/api/connections/status/route.ts
@@ -165,9 +166,7 @@ export async function GET(request: Request) {
const connectionId = searchParams.get('connectionId');
// Wait for connection to complete
- const connection = await composio.connectedAccounts.waitForConnection(
- connectionId,
- );
+ const connection = await composio.connectedAccounts.waitForConnection(connectionId);
return NextResponse.json({
id: connection.id,
@@ -199,6 +198,7 @@ export async function DELETE(request: Request) {
```
## Working with tools
+
Once users have connected their accounts, we need to track which toolkits are enabled and fetch the corresponding tools for the LLM.
### 1. Tracking enabled toolkits
@@ -214,7 +214,7 @@ const { ... } = useChat({
const enabledToolkits = Array.from(
currentToolbarState.enabledToolkitsWithStatus.entries(),
).map(([slug, isConnected]) => ({ slug, isConnected }));
-
+
return {
// ... other fields ...
enabledToolkits,
@@ -243,12 +243,9 @@ export async function getComposioTools(userId: string, toolkitSlugs: string[]) {
export async function POST(request: Request) {
// ... auth and parsing ...
- const toolkitSlugs = enabledToolkits?.map((t) => t.slug) || [];
+ const toolkitSlugs = enabledToolkits?.map(t => t.slug) || [];
- const composioTools = await getComposioTools(
- session.user.id,
- toolkitSlugs,
- );
+ const composioTools = await getComposioTools(session.user.id, toolkitSlugs);
const result = streamText({
// ... model config ...
@@ -264,7 +261,7 @@ export async function POST(request: Request) {
By default, tool calls appear as raw JSON in the chat interface. To create a better user experience, we can build custom components that display tool calls with proper formatting and loading states.
<Frame>
- <img src="../../../assets/images/examples/custom-tool-component.png" />
+ <img src="../assets/images/examples/custom-tool-component.png" />
</Frame>
You can find the `ToolCall` component at `components/tool-call.tsx`. Here's how to integrate it into your message rendering:
@@ -297,4 +294,4 @@ if (type === 'tool-invocation') {
);
}
}
-```
\ No newline at end of file
+```
diff --git a/fern/pages/get-started/dev-setup.mdx b/fern/docs/get-started/dev-setup.mdx
similarity index 93%
rename from fern/pages/get-started/dev-setup.mdx
rename to fern/docs/get-started/dev-setup.mdx
index 71a2c73d2..2ca95a6df 100644
--- a/fern/pages/get-started/dev-setup.mdx
+++ b/fern/docs/get-started/dev-setup.mdx
@@ -1,30 +1,21 @@
---
title: IDE and Agent Setup
-subtitle: "Setup your AI IDE and agent to help you ship faster with Composio"
+subtitle: 'Setup your AI IDE and agent to help you ship faster with Composio'
slug: /docs/dev-setup
-image: "https://og.composio.dev/api/og?title=IDE%20and%20Agent%20Setup" # image for socials
-keywords: ""
+image: 'https://og.composio.dev/api/og?title=IDE%20and%20Agent%20Setup' # image for socials
+keywords: ''
hide-nav-links: false
---
This guide explains how to setup your IDE, and coding agents to help you ship faster with Composio.
-{/* ## Generate types for tools
-<CodeGroup>
-```typescript TypeScript maxLines=60 wordWrap
-
-```
-
-```python Python maxLines=60 wordWrap
-
-```
-</CodeGroup> */}
## Optimise Cursor
+
To optimize your experience building with Composio, you can add instructions to Cursor's system settings.
<Frame>
-<img src="../../assets/images/cursor-settings.png" alt="Cursor settings" />
+ <img src="../assets/images/cursor-settings.png" alt="Cursor settings" />
</Frame>
Add the following to your Cursor "Rules for AI":
@@ -37,6 +28,7 @@ It lets you build agents that that can work across a user's apps like Gmail, Not
Below is a list of Composio documentation. Use your web and fetch capabilities to read the documentation you need.
[Composio Documentation](https://v3.docs.composio.dev)
+
- [Quickstart](https://v3.docs.composio.dev/docs/quickstart.mdx): Add authenticated tool-calling to any LLM agent in three steps.
- [Configuration](https://v3.docs.composio.dev/docs/configuration.mdx)
- [Providers](https://v3.docs.composio.dev/docs/toolsets.mdx)
@@ -47,7 +39,7 @@ Below is a list of Composio documentation. Use your web and fetch capabilities t
- [Before Execution Modifiers](https://v3.docs.composio.dev/docs/modifiers/before-execution.mdx): Learn how to use before execution modifiers to modify tool arguments before execution.
- [After Execution Modifiers](https://v3.docs.composio.dev/docs/modifiers/after-execution.mdx): Learn how to use after execution modifiers to transform tool results after execution.
- [Creating custom tools](https://v3.docs.composio.dev/docs/custom-tools.mdx): Learn how to extend Composio's toolkits with your own tools
-- [Custom Auth Configs](https://v3.docs.composio.dev/docs/custom-auth-configs.mdx): Guide to using customising auth configs for a toolkit
+- [Custom Auth Configs](https://v3.docs.composio.dev/docs/custom-auth-configs.mdx): Guide to using customising auth configs for a toolkit
- [Programmatic Auth Configs](https://v3.docs.composio.dev/docs/programmatic-auth-configs.mdx): Guide to creating auth configs programmatically
- [Custom Auth Parameters](https://v3.docs.composio.dev/docs/custom-auth-params.mdx): Guide to injecting custom credentials in headers or parameters for a toolkit
- [Using Triggers](https://v3.docs.composio.dev/docs/using-triggers.mdx): Send payloads to your system based on external events
@@ -61,7 +53,7 @@ Below is a list of Composio documentation. Use your web and fetch capabilities t
- [Mastra Provider](https://v3.docs.composio.dev/providers/mastra.mdx)
- [Custom Providers](https://v3.docs.composio.dev/toolsets/custom.mdx)
-```
+````
```md Python
You are the best Python developer known for your high taste and usage of new and cutting-edge practices.
@@ -80,7 +72,7 @@ Below is a list of Composio documentation. Use your web and fetch capabilities t
- [Before Execution Modifiers](https://v3.docs.composio.dev/docs/modifiers/before-execution.mdx): Learn how to use before execution modifiers to modify tool arguments before execution.
- [After Execution Modifiers](https://v3.docs.composio.dev/docs/modifiers/after-execution.mdx): Learn how to use after execution modifiers to transform tool results after execution.
- [Creating custom tools](https://v3.docs.composio.dev/docs/custom-tools.mdx): Learn how to extend Composio's toolkits with your own tools
-- [Custom Auth Configs](https://v3.docs.composio.dev/docs/custom-auth-configs.mdx): Guide to using customising auth configs for a toolkit
+- [Custom Auth Configs](https://v3.docs.composio.dev/docs/custom-auth-configs.mdx): Guide to using customising auth configs for a toolkit
- [Programmatic Auth Configs](https://v3.docs.composio.dev/docs/programmatic-auth-configs.mdx): Guide to creating auth configs programmatically
- [Custom Auth Parameters](https://v3.docs.composio.dev/docs/custom-auth-params.mdx): Guide to injecting custom credentials in headers or parameters for a toolkit
- [Using Triggers](https://v3.docs.composio.dev/docs/using-triggers.mdx): Send payloads to your system based on external events
@@ -93,7 +85,6 @@ Below is a list of Composio documentation. Use your web and fetch capabilities t
- [OpenAI Agents Provider](https://v3.docs.composio.dev/providers/openai-agents.mdx)
- [Mastra Provider](https://v3.docs.composio.dev/providers/mastra.mdx)
- [Custom Providers](https://v3.docs.composio.dev/toolsets/custom.mdx)
-```
-</CodeGroup>
-
+````
+</CodeGroup>
diff --git a/fern/pages/get-started/providers.mdx b/fern/docs/get-started/providers.mdx
similarity index 84%
rename from fern/pages/get-started/providers.mdx
rename to fern/docs/get-started/providers.mdx
index cf9b1c438..05cdeb664 100644
--- a/fern/pages/get-started/providers.mdx
+++ b/fern/docs/get-started/providers.mdx
@@ -1,24 +1,30 @@
---
title: Providers
-image: "https://og.composio.dev/api/og?title=Providers" # image for socials
-keywords: ""
+image: 'https://og.composio.dev/api/og?title=Providers' # image for socials
+keywords: ''
hide-nav-links: false
---
Every LLM framework and provider essentially does the same thing - **tool calling and giving agents skills** - but each has its own unique syntax and implementation. Whether you're using OpenAI, Anthropic, CrewAI, or LangGraph, you're solving the same problems with different APIs.
<Frame>
- <img src="../../assets/images/providers-and-toolsets.png" alt="Providers and Toolsets" width="400px" height="auto"/>
+ <img
+ src="../assets/images/providers-and-toolsets.png"
+ alt="Providers and Toolsets"
+ width="400px"
+ height="auto"
+ />
</Frame>
Composio standardizes this mess. Use the same tools across any framework with our unified interface, or create custom toolsets for frameworks we don't support yet. No more rewriting tool integrations when you switch providers.
Composio has two types of providers:
+
- **Completion Providers**: These frameworks are simply used to generate text, function calls. They don't have an automatic function execution step.
- **Agentic Providers**: These providers are used to create agents. They have a function execution step and the tools are executed automatically.
-
## Providers
+
Here's how you can generate text with various providers using Composio SDK:
<Tabs>
@@ -31,16 +37,17 @@ import { OpenAIProvider } from "@composio/openai";
import { OpenAI } from "openai";
const composio = new Composio({
- provider: new OpenAIProvider(),
+provider: new OpenAIProvider(),
});
-```
+````
```python Python
from composio import Composio
from composio_openai import OpenAIProvider
composio = Composio(provider=OpenAIProvider())
-```
+````
+
</CodeGroup>
</Tab>
<Tab title="Anthropic">
@@ -52,17 +59,19 @@ import { AnthropicProvider } from "@composio/anthropic";
import { Anthropic } from "@anthropic-ai/sdk";
const composio = new Composio({
- provider: new AnthropicProvider(),
+provider: new AnthropicProvider(),
});
const anthropic = new Anthropic();
-```
+
+````
```python Python
from composio import Composio
from composio_anthropic import AnthropicProvider
composio = Composio(provider=AnthropicProvider())
-```
+````
+
</CodeGroup>
</Tab>
<Tab title="Vercel AI SDK">
@@ -75,10 +84,11 @@ import { VercelProvider } from "@composio/vercel";
const userId = "00000000-0000-0000-0000-000000000000"; // The user's ID.
const composio = new Composio({
- apiKey: process.env.COMPOSIO_API_KEY,
- provider: new VercelProvider(),
+apiKey: process.env.COMPOSIO_API_KEY,
+provider: new VercelProvider(),
});
-```
+
+````
</Tab>
<Tab title="Mastra">
```typescript TypeScript
@@ -91,7 +101,8 @@ const composio = new Composio({
provider: new MastraProvider(),
});
-```
+````
+
</Tab>
<Tab title="OpenAI Agents">
```python Python
@@ -99,6 +110,7 @@ from composio import Composio
from composio_openai_agents import OpenAIAgentsProvider
composio = Composio(provider=OpenAIAgentsProvider())
+
```
</Tab>
</Tabs>
@@ -109,21 +121,21 @@ composio = Composio(provider=OpenAIAgentsProvider())
<CardGroup cols={3}>
<Card
title="OpenAI Provider"
- icon={<img src="../../assets/images/openai-logo.svg" width="24" height="24" />}
+ icon={<img src="../assets/images/openai-logo.svg" width="24" height="24" />}
href="/providers/openai"
>
Integrate with OpenAI's tool calling and agents.
</Card>
<Card
title="Anthropic Provider"
- icon={<img src="../../assets/images/anthropic-logo.svg" width="24" height="24" />}
+ icon={<img src="../assets/images/anthropic-logo.svg" width="24" height="24" />}
href="/providers/anthropic"
>
Use Anthropic's Claude models with Composio tools.
</Card>
<Card
title="Gemini Provider"
- icon={<img src="../../assets/images/google-logo.svg" width="24" height="24" />}
+ icon={<img src="../assets/images/google-logo.svg" width="24" height="24" />}
href="/providers/google-adk"
>
Integrate with Google's Gemini models.
@@ -134,7 +146,7 @@ composio = Composio(provider=OpenAIAgentsProvider())
<CardGroup cols={3}>
<Card
title="LangGraph Provider"
- icon={<img src="../../assets/images/langgraph-logo.svg"/>}
+ icon={<img src="../assets/images/langgraph-logo.svg"/>}
href="/providers/langgraph"
>
Add tools to LangGraph agent flows.
@@ -148,7 +160,7 @@ composio = Composio(provider=OpenAIAgentsProvider())
</Card>
<Card
title="Vercel AI SDK Provider"
- icon={<img src="../../assets/images/vercel-logo.svg" width="24" height="24" />}
+ icon={<img src="../assets/images/vercel-logo.svg" width="24" height="24" />}
href="/providers/vercel"
>
Use Composio tools with Vercel's AI SDK.
@@ -171,4 +183,5 @@ composio = Composio(provider=OpenAIAgentsProvider())
<Tip title="Custom Toolsets" icon="puzzle">
Using a framework not supported? Create a [custom toolset](/toolsets/custom)!
-</Tip>
\ No newline at end of file
+</Tip>
+```
diff --git a/fern/pages/get-started/quickstart.mdx b/fern/docs/get-started/quickstart.mdx
similarity index 100%
rename from fern/pages/get-started/quickstart.mdx
rename to fern/docs/get-started/quickstart.mdx
diff --git a/fern/pages/get-started/welcome.mdx b/fern/docs/get-started/welcome.mdx
similarity index 70%
rename from fern/pages/get-started/welcome.mdx
rename to fern/docs/get-started/welcome.mdx
index b6ccdb48d..3f7548202 100644
--- a/fern/pages/get-started/welcome.mdx
+++ b/fern/docs/get-started/welcome.mdx
@@ -1,20 +1,22 @@
---
title: Welcome to Composio
-image: "https://og.composio.dev/api/og?title=Welcome%20to%20Composio" # image for socials
-keywords: ""
-subtitle: "Our API and SDKs enable developers to build AI applications and experiences that are a step above the rest."
+image: 'https://og.composio.dev/api/og?title=Welcome%20to%20Composio' # image for socials
+keywords: ''
+subtitle: 'Our API and SDKs enable developers to build AI applications and experiences that are a step above the rest.'
hide-nav-links: false
---
<Frame>
- <img src="../../assets/images/intro.png" alt="Composio introduction image"/>
+ <img src="../assets/images/intro.png" alt="Composio introduction image" />
</Frame>
<Tip>
-Give your AI IDE access to Composio's documentation using our llms.txt files: ([short .txt](/llms.txt), [long .txt](/llms-full.txt))
+ Give your AI IDE access to Composio's documentation using our llms.txt files: ([short
+ .txt](/llms.txt), [long .txt](/llms-full.txt))
</Tip>
Composio is an integration and tooling platform built for AI agents and LLM applications that lets you:
+
- Add tool-use capabilities to your AI agent from [300+ apps](/tools/).
- Give agents [authenticated access to tools](/docs/custom-auth-configs).
- [Listen and trigger](/docs/using-triggers) agents and workflows from external events (e.g., new Slack message, GitHub issue).
diff --git a/fern/docs/index.mdx b/fern/docs/index.mdx
new file mode 100644
index 000000000..456b7acbe
--- /dev/null
+++ b/fern/docs/index.mdx
@@ -0,0 +1,171 @@
+---
+no-image-zoom: true
+---
+
+export const LandingPageCard = ({ href, title, imgSrc, description }) => (
+ <div className="rounded-lg bg-[#F5F4F2] dark:bg-[#0F0F0F] px-6 py-5 hover:bg-[#E9E6DE] dark:hover:bg-[#292929] md:p-8">
+ <a
+ href={href}
+ target="_self"
+ className="flex h-full flex-col justify-between"
+ style={{ textDecoration: 'none' }}
+ >
+ <div className="mb-5 flex flex-col justify-between gap-5">
+ <h2 className="lg:min-h-20 [@media(min-width:1181px)]:min-h-0">
+ {title}
+ </h2>
+ <img src={imgSrc} alt={title} />
+ <p className="p-lg">{description}</p>
+ </div>
+ <div className="mt-2 text-sm text-[#2D4CB9] dark:text-[#4C6EE6] md:mt-0 md:self-end">
+ {"GET STARTED"}
+ <div className="ml-2 inline-block group-hover:no-underline">
+ <svg
+ width="12"
+ height="11"
+ viewBox="0 0 12 11"
+ fill="none"
+ xmlns="http://www.w3.org/2000/svg"
+ style={{ transform: "rotate(-90deg)" }}
+ >
+ <path
+ d="M6 10.75L0.75 5.31686L1.74907 4.27907L5.2556 8.00291L5.2556 0.25L6.7444 0.25L6.7444 8.00291L10.2509 4.27907L11.25 5.31686L6 10.75Z"
+ fill="currentColor"
+ ></path>
+ </svg>
+ </div>
+ </div>
+ </a>
+ </div>
+);
+
+export const EndpointLink = ({ href, title }) => (
+ <a
+ href={href}
+ className="group flex cursor-pointer flex-row text-sm !font-normal text-[#2D4CB9] dark:text-[#4C6EE6]"
+ rel="noreferrer"
+ target="_self"
+ >
+ {title}
+ <span className="duration-400 flex items-center transition-all ease-in-out group-hover:pl-1 group-hover:pr-2">
+ <div className="ml-2 inline-block text-sm !text-[#2D4CB9] group-hover:no-underline">
+ <svg
+ width="12"
+ height="11"
+ viewBox="0 0 12 11"
+ fill="none"
+ xmlns="http://www.w3.org/2000/svg"
+ style={{ transform: "rotate(-90deg)" }}
+ >
+ <path
+ d="M6 10.75L0.75 5.31686L1.74907 4.27907L5.2556 8.00291L5.2556 0.25L6.7444 0.25L6.7444 8.00291L10.2509 4.27907L11.25 5.31686L6 10.75Z"
+ fill="currentColor"
+ ></path>
+ </svg>
+ </div>
+ </span>
+ </a>
+);
+
+export const cards = [
+ {
+ href: "/docs",
+ imgSrc: "https://fern-image-hosting.s3.amazonaws.com/cohere/8da77c9-Frame_138972.png",
+ title: "Guides",
+ description:
+ "Understand how to use the Composio SDK and platform on a deeper level. Build with authenticated tools, triggers and more.",
+ },
+ {
+ href: "/api-reference/",
+ imgSrc: "https://fern-image-hosting.s3.amazonaws.com/cohere/8ff146a-Group_138977.png",
+ title: "Reference",
+ description:
+ "Use Composio's tools and MCP servers into your agents with just a few lines of code.",
+ },
+ {
+ href: "/cookbooks",
+ imgSrc: "https://fern-image-hosting.s3.amazonaws.com/cohere/7fca92c-Group_138977_2.png",
+ title: "Cookbooks",
+ description:
+ "A collection of resources to help developers get up and running with Composio.",
+ },
+];
+
+export const frameworks = [
+ {
+ href: "/frameworks/langchain",
+ title: "LangChain",
+ },
+ {
+ href: "/frameworks/langgraph",
+ title: "LangGraph",
+ },
+ {
+ href: "/frameworks/crewai",
+ title: "CrewAI",
+ },
+ {
+ href: "/frameworks/vercel",
+ title: "Vercel",
+ },
+ {
+ href: "/frameworks/autogen",
+ title: "Autogen",
+ },
+];
+
+<div className="m-auto max-w-[1195px] flex-grow overflow-y-auto px-8 pt-10 md:p-10 md:pb-14">
+ <div className="flex flex-col gap-5 md:!grid md:grid-cols-2 md:gap-10 md:pb-7 lg:!grid-cols-3 lg:gap-x-8 lg:gap-y-10 lg:pb-16">
+ {cards.map((card) => (
+ <LandingPageCard
+ key={card.href}
+ href={card.href}
+ imgSrc={card.imgSrc}
+ title={card.title}
+ description={card.description}
+ />
+ ))}
+ <a href="/frameworks" className="col-span-2" style={{ textDecoration: 'none' }}>
+ <div className="mb-8 flex flex-col gap-9 rounded-lg bg-[#F5F4F2] dark:bg-[#0F0F0F] px-6 py-5 hover:bg-[#E9E6DE] dark:hover:bg-[#292929] md:!flex-row md:items-end md:gap-16 md:p-8 lg:gap-10">
+ <div className="md:w-1/2">
+ <h2 className="mb-8 mt-4 md:mt-0">Frameworks</h2>
+ <p className="p-lg w-full">
+ Build with frameworks that support Composio's tools and MCP servers.
+ </p>
+ </div>
+ <div className="grid grid-cols-2 gap-5 md:w-1/2 md:gap-10 lg:w-1/3 lg:gap-8">
+ {frameworks.map((framework) => (
+ <EndpointLink key={framework.href} {...framework} />
+ ))}
+ </div>
+ </div>
+ </a>
+ </div>
+ <div
+ className="block h-full w-full rounded-lg bg-cover bg-no-repeat p-6 md:hidden"
+ style={{
+ backgroundImage: "url('https://fern-image-hosting.s3.amazonaws.com/cohere/ddd53ed-Mask_group.png')",
+ }}
+ >
+ <a
+ href="https://cohere.com/llmu"
+ target="_blank"
+ className="flex h-full w-full flex-col justify-between !text-white md:!flex-row"
+ >
+ <div className="flex h-full flex-col justify-between">
+ <div className="flex flex-row">
+ <img
+ src="https://fern-image-hosting.s3.amazonaws.com/cohere/9d0694c-Symbol.svg"
+ alt=""
+ className="h-7 w-7 lg:h-10 lg:w-10"
+ />
+ <h2 className="h3 mb-28 ml-5 mt-0">LLM University</h2>
+ </div>
+ <p className="p-lg !text-white">
+ New to NLP? Learn about Natural Language processing and Large Language
+ Models through our structured curriculum.
+ </p>
+ </div>
+ </a>
+ </div>
+</div>
diff --git a/fern/pages/mcp/introduction.mdx b/fern/docs/mcp/introduction.mdx
similarity index 100%
rename from fern/pages/mcp/introduction.mdx
rename to fern/docs/mcp/introduction.mdx
diff --git a/fern/pages/providers/anthropic.mdx b/fern/docs/providers/anthropic.mdx
similarity index 100%
rename from fern/pages/providers/anthropic.mdx
rename to fern/docs/providers/anthropic.mdx
diff --git a/fern/pages/providers/crewai.mdx b/fern/docs/providers/crewai.mdx
similarity index 100%
rename from fern/pages/providers/crewai.mdx
rename to fern/docs/providers/crewai.mdx
diff --git a/fern/pages/providers/custom.mdx b/fern/docs/providers/custom.mdx
similarity index 100%
rename from fern/pages/providers/custom.mdx
rename to fern/docs/providers/custom.mdx
diff --git a/fern/pages/providers/google-adk.mdx b/fern/docs/providers/google-adk.mdx
similarity index 100%
rename from fern/pages/providers/google-adk.mdx
rename to fern/docs/providers/google-adk.mdx
diff --git a/fern/pages/providers/langchain.mdx b/fern/docs/providers/langchain.mdx
similarity index 100%
rename from fern/pages/providers/langchain.mdx
rename to fern/docs/providers/langchain.mdx
diff --git a/fern/pages/providers/mastra.mdx b/fern/docs/providers/mastra.mdx
similarity index 100%
rename from fern/pages/providers/mastra.mdx
rename to fern/docs/providers/mastra.mdx
diff --git a/fern/pages/providers/openai-agents.mdx b/fern/docs/providers/openai-agents.mdx
similarity index 100%
rename from fern/pages/providers/openai-agents.mdx
rename to fern/docs/providers/openai-agents.mdx
diff --git a/fern/pages/providers/openai.mdx b/fern/docs/providers/openai.mdx
similarity index 100%
rename from fern/pages/providers/openai.mdx
rename to fern/docs/providers/openai.mdx
diff --git a/fern/pages/providers/vercel.mdx b/fern/docs/providers/vercel.mdx
similarity index 100%
rename from fern/pages/providers/vercel.mdx
rename to fern/docs/providers/vercel.mdx
diff --git a/fern/docs/tool-calling/after-execution-modifiers.mdx b/fern/docs/tool-calling/after-execution-modifiers.mdx
new file mode 100644
index 000000000..00f1994d2
--- /dev/null
+++ b/fern/docs/tool-calling/after-execution-modifiers.mdx
@@ -0,0 +1,129 @@
+---
+title: After Execution Modifiers
+image: 'https://og.composio.dev/api/og?title=After%20Execution%20Modifiers' # image for socials
+keywords: ''
+subtitle: 'Learn how to use after execution modifiers to transform tool results after execution.'
+hide-nav-links: false
+---
+
+After execution modifiers are part of Composio SDK's powerful middleware capabilities that allow you to customize and extend the behavior of tools.
+
+## After Execution Modifiers
+
+These modifiers are called after the tool is executed by the LLM. This allows you to modify the _result_ of the tool before it is returned to the agent.
+
+**Useful for:**
+
+- Modifying or truncating the output of the tool.
+- Convert the output to a different format before returning it to the agent.
+
+<Frame>
+ <img src="../assets/images/after-execute.png" alt="After Execution Modifier" />
+</Frame>
+
+<Note>
+ Below we use the `afterToolExecute` modifier to truncate the output of the `HACKERNEWS_GET_USER`
+ tool and only return the karma of the user.
+</Note>
+
+<Tabs>
+<Tab title="With Chat Completions">
+Since completion providers don't have a function execution step -- Composio will execute the tool call directly.
+
+Hence, the modifier is configured on the `tools.execute` method.
+
+<CodeGroup>
+```typescript TypeScript maxLines=60 wordWrap
+const response = await openai.chat.completions.create({
+ model: "gpt-4o-mini",
+ messages,
+ tools: tools,
+ tool_choice: "auto",
+});
+
+console.log(response.choices[0].message.tool_calls);
+
+if (response.choices[0].message.tool*calls) {
+const result = await composio.tools.execute(
+"HACKERNEWS_GET_USER",
+{
+userId: userId,
+arguments: JSON.parse(
+response.choices[0].message.tool_calls[0].function.arguments
+),
+},
+{
+afterToolExecute: (toolSlug, *, result) => {
+if (toolSlug === "HACKERNEWS_GET_USER") {
+const { data } = result;
+const responseData = data.response_data as { karma: number };
+return {
+...result,
+data: {
+karma: responseData.karma
+},
+};
+}
+return result;
+},
+}
+);
+console.log(JSON.stringify(result, null, 2));
+}
+
+````
+```python Python maxLines=60 wordWrap
+
+````
+
+</CodeGroup>
+</Tab>
+
+<Tab title="With Agentic Frameworks">
+Agentic providers have a function execution step.
+The modifier is configured on the `tools.get` method which modifies the execution logic within the framework!
+<CodeGroup>
+```typescript TypeScript maxLines=60 wordWrap {24-27}
+import { Composio } from "@composio/core";
+import { VercelProvider } from "@composio/vercel";
+import { generateText } from "ai";
+import { openai } from "@ai-sdk/openai";
+import { v4 as uuidv4 } from "uuid";
+
+const composio = new Composio({
+apiKey: process.env.COMPOSIO_API_KEY,
+provider: new VercelProvider(),
+});
+
+const userId = uuidv4(); // The user's ID.
+
+const agenticTools = await composio.tools.get(
+userId,
+{
+tools: ["HACKERNEWS_GET_USER"],
+},
+{
+afterExecute: (toolSlug, toolkitSlug, result) => {
+if (toolSlug === "HACKERNEWS_GET_USER") {
+const { data } = result;
+const responseData = data.response_data as { karma: number };
+return {
+...result,
+data: {
+karma: responseData.karma
+},
+};
+}
+return result;
+},
+}
+);
+
+````
+```python Python maxLines=60 wordWrap
+
+````
+
+</CodeGroup>
+</Tab>
+</Tabs>
diff --git a/fern/pages/tool-calling/authenticating-tools.mdx b/fern/docs/tool-calling/authenticating-tools.mdx
similarity index 97%
rename from fern/pages/tool-calling/authenticating-tools.mdx
rename to fern/docs/tool-calling/authenticating-tools.mdx
index 28cf6e4c9..ff2900f86 100644
--- a/fern/pages/tool-calling/authenticating-tools.mdx
+++ b/fern/docs/tool-calling/authenticating-tools.mdx
@@ -6,7 +6,6 @@ subtitle: 'Learn how to authenticate tools'
hide-nav-links: false
---
-
Different apps (like Slack, Notion, Shopify) have their own authentication flows that users must complete to grant access to their accounts. Agents need authenticated access to these tools to perform actions on behalf of users.
## Creating an auth config
@@ -30,13 +29,13 @@ Once created, it's reusable across multiple users.
<Step title="Select App">
Navigate to the [Apps page](https://app.composio.dev/apps) and choose the app you want to integrate (for example, Google Sheets).
<Frame background="subtle" title="Application Selection Screen">
- <img src="../../assets/images/integration-step-1-0.png" />
+ <img src="../assets/images/integration-step-1-0.png" />
</Frame>
</Step>
<Step title="Initiate Setup">
Click the **"Setup Integration"** button.
<Frame background="subtle" title="Auth Config Setup Interface">
- <img src="../../assets/images/integration-step-2-0.png" />
+ <img src="../assets/images/integration-step-2-0.png" />
</Frame>
</Step>
<Step title="Configure Auth Config Settings">
@@ -49,7 +48,7 @@ Once created, it's reusable across multiple users.
</Note>
<Frame background="subtle" title="Auth Config Settings">
- <img src="../../assets/images/auth-config-creation.png" />
+ <img src="../assets/images/auth-config-creation.png" />
</Frame>
</Step>
<Step title="Create and Get ID">
@@ -95,7 +94,7 @@ await connRequest.waitForConnection();
// In case the `connRequest` object dies, the ID can be used too.
await composio.connectedAccounts.waitForConnection(connRequest.id);
-```
+````
```python Python maxLines=60 wordWrap
from composio import Composio
@@ -113,7 +112,8 @@ print(connection_request.redirect_url)
# Wait for the connection to be established
connected_account = connection_request.wait_for_connection()
print(connected_account)
-```
+````
+
</CodeGroup>
## Connecting to an API Key toolkit
@@ -138,7 +138,7 @@ apiKey: "sk_1234567890", // The field name for the API key/token
}
);
-```
+````
```python Python maxLines=60 wordWrap
from composio.types import auth_scheme
@@ -154,7 +154,8 @@ connection_request = composio.connected_accounts.initiate(
),
)
print(connection_request)
-```
+````
+
</CodeGroup>
### Fetching the field name
@@ -177,7 +178,7 @@ detail => detail.fields.connectedAccountInitiation
);
console.log(fieldNames); // e.g. ["apiKey"]
-```
+````
```python Python maxLines=60 wordWrap
required_fields = composio.connected_accounts.get_required_fields(
@@ -270,7 +271,7 @@ data: authData,
console.log("Connection request ID:", connectionRequest.id);
-```
+````
```python Python maxLines=60 wordWrap
import os
from composio import Composio
diff --git a/fern/pages/tool-calling/before-execution-modifiers.mdx b/fern/docs/tool-calling/before-execution-modifiers.mdx
similarity index 50%
rename from fern/pages/tool-calling/before-execution-modifiers.mdx
rename to fern/docs/tool-calling/before-execution-modifiers.mdx
index 26b169883..9a3bf8432 100644
--- a/fern/pages/tool-calling/before-execution-modifiers.mdx
+++ b/fern/docs/tool-calling/before-execution-modifiers.mdx
@@ -1,31 +1,37 @@
---
title: Before Execution Modifiers
-image: "https://og.composio.dev/api/og?title=Before%20Execution%20Modifiers" # image for socials
-keywords: ""
-subtitle: "Learn how to use before execution modifiers to modify tool arguments before execution."
+image: 'https://og.composio.dev/api/og?title=Before%20Execution%20Modifiers' # image for socials
+keywords: ''
+subtitle: 'Learn how to use before execution modifiers to modify tool arguments before execution.'
hide-nav-links: false
---
Before execution modifiers are part of Composio SDK's powerful middleware capabilities that allow you to customize and extend the behavior of tools.
## Before Execution Modifiers
-These modifiers are called before the tool is executed by the LLM. This allows you to modify the *arguments* called by the LLM before they are executed by Composio.
+
+These modifiers are called before the tool is executed by the LLM. This allows you to modify the _arguments_ called by the LLM before they are executed by Composio.
**Useful for:**
+
- Injecting an argument into the tool execution.
- Overriding the arguments emitted by the LLM.
<Frame>
- <img src="../../assets/images/before-execute.png" alt="Before Execution Modifier" />
+ <img src="../assets/images/before-execute.png" alt="Before Execution Modifier" />
</Frame>
-<Note>Below we use the `beforeToolExecute` modifier to modify the number of posts returned by the `HACKERNEWS_GET_LATEST_POSTS` tool.</Note>
+<Note>
+ Below we use the `beforeToolExecute` modifier to modify the number of posts returned by the
+ `HACKERNEWS_GET_LATEST_POSTS` tool.
+</Note>
<Tabs>
<Tab title="With Chat Completions">
Since completion providers don't have a function execution step -- Composio will execute the tool call directly.
Hence, the modifier is configured on the `tools.execute` method.
+
<CodeGroup>
```typescript TypeScript maxLines=60 wordWrap {11, 20-28}
const response = await openai.chat.completions.create({
@@ -37,31 +43,33 @@ const response = await openai.chat.completions.create({
console.log(response.choices[0].message.tool_calls);
-if (response.choices[0].message.tool_calls) {
- const result = await composio.tools.execute(
- "HACKERNEWS_GET_LATEST_POSTS",
- {
- userId: userId,
- arguments: JSON.parse(
- response.choices[0].message.tool_calls[0].function.arguments
- ),
- },
- {
- beforeToolExecute: (toolSlug, _, params) => {
- if (toolSlug === "HACKERNEWS_GET_LATEST_POSTS") {
- params.arguments.size = 1;
- }
- console.log(params);
- return params;
- },
- }
- );
- console.log(JSON.stringify(result, null, 2));
+if (response.choices[0].message.tool*calls) {
+const result = await composio.tools.execute(
+"HACKERNEWS_GET_LATEST_POSTS",
+{
+userId: userId,
+arguments: JSON.parse(
+response.choices[0].message.tool_calls[0].function.arguments
+),
+},
+{
+beforeToolExecute: (toolSlug, *, params) => {
+if (toolSlug === "HACKERNEWS_GET_LATEST_POSTS") {
+params.arguments.size = 1;
+}
+console.log(params);
+return params;
+},
+}
+);
+console.log(JSON.stringify(result, null, 2));
}
-```
+
+````
```python Python maxLines=60 wordWrap
-```
+````
+
</CodeGroup>
</Tab>
@@ -76,43 +84,45 @@ import { MastraProvider } from "@composio/mastra";
import { Agent } from "@mastra/core/agent";
const composio = new Composio({
- apiKey: process.env.COMPOSIO_API_KEY,
- provider: new MastraProvider(),
+apiKey: process.env.COMPOSIO_API_KEY,
+provider: new MastraProvider(),
});
const userId = "[email protected]"; // The user's ID.
const agenticTools = await composio.tools.get(
- userId,
- {
- tools: [
- "HACKERNEWS_GET_LATEST_POSTS",
- "HACKERNEWS_GET_USER",
- "LINEAR_CREATE_LINEAR_ISSUE",
- ],
- },
- {
- beforeToolExecute: (toolSlug, _, params) => {
- if (toolSlug === "LINEAR_CREATE_LINEAR_ISSUE") {
- params.arguments.project_id = "1234567890";
- }
- return params;
- },
- }
+userId,
+{
+tools: [
+"HACKERNEWS_GET_LATEST_POSTS",
+"HACKERNEWS_GET_USER",
+"LINEAR_CREATE_LINEAR_ISSUE",
+],
+},
+{
+beforeToolExecute: (toolSlug, \_, params) => {
+if (toolSlug === "LINEAR_CREATE_LINEAR_ISSUE") {
+params.arguments.project_id = "1234567890";
+}
+return params;
+},
+}
);
const { text } = await generateText({
- model: openai("gpt-4o-mini"),
- messages: [
- { role: "user", content: "Create an issue to `sid` to add RLS" },
- ],
- tools: agenticTools,
- maxSteps: 5,
+model: openai("gpt-4o-mini"),
+messages: [
+{ role: "user", content: "Create an issue to `sid` to add RLS" },
+],
+tools: agenticTools,
+maxSteps: 5,
});
-```
+
+````
```python Python maxLines=60 wordWrap
-```
+````
+
</CodeGroup>
</Tab>
-</Tabs>
\ No newline at end of file
+</Tabs>
diff --git a/fern/pages/tool-calling/custom-tools.mdx b/fern/docs/tool-calling/custom-tools.mdx
similarity index 100%
rename from fern/pages/tool-calling/custom-tools.mdx
rename to fern/docs/tool-calling/custom-tools.mdx
diff --git a/fern/pages/tool-calling/executing-tools.mdx b/fern/docs/tool-calling/executing-tools.mdx
similarity index 100%
rename from fern/pages/tool-calling/executing-tools.mdx
rename to fern/docs/tool-calling/executing-tools.mdx
diff --git a/fern/pages/tool-calling/fetching-tools.mdx b/fern/docs/tool-calling/fetching-tools.mdx
similarity index 100%
rename from fern/pages/tool-calling/fetching-tools.mdx
rename to fern/docs/tool-calling/fetching-tools.mdx
diff --git a/fern/docs/tool-calling/schema-modifiers.mdx b/fern/docs/tool-calling/schema-modifiers.mdx
new file mode 100644
index 000000000..fb56860a6
--- /dev/null
+++ b/fern/docs/tool-calling/schema-modifiers.mdx
@@ -0,0 +1,120 @@
+---
+title: Schema Modifiers
+image: 'https://og.composio.dev/api/og?title=Schema%20Modifiers' # image for socials
+keywords: ''
+subtitle: 'Learn how to use schema modifiers to transform tool schemas before they are seen by agents.'
+hide-nav-links: false
+---
+
+Schema modifiers are part of Composio SDK's powerful middleware capabilities that allow you to customize and extend the behavior of tools.
+
+## Schema Modifiers
+
+Schema modifiers transform a tool's schema before the tool is seen by an agent.
+
+<Frame>
+ <img src="../assets/images/schema-modifier.png" alt="Schema Modifier" />
+</Frame>
+**Useful for:** - Adding arguments to the tool. For example, adding a `thought` argument to the tool
+to prompt the agent to explain the reasoning. - Hiding arguments from the tool. In cases where the
+argument is irrelevant to the tool. - Adding extra arguments to the tool schema for custom use cases
+or execution. - Adding default values to tool arguments.
+
+<Note>
+ Below we modify the schema of the `HACKERNEWS_GET_LATEST_POSTS` to make the `size` argument
+ required and remove the `page` argument.
+</Note>
+
+<CodeGroup>
+```typescript TypeScript maxLines=60 wordWrap
+const userId = "[email protected]";
+
+const tools = await composio.tools.get(
+userId,
+{
+tools: ["HACKERNEWS_GET_LATEST_POSTS", "HACKERNEWS_GET_USER"],
+},
+{
+modifyToolSchema: (toolSlug, \_, toolSchema) => {
+if (toolSlug === "HACKERNEWS_GET_LATEST_POSTS") {
+const { inputParameters } = toolSchema;
+if (inputParameters?.properties) {
+delete inputParameters.properties["page"];
+}
+inputParameters.required = ["size"];
+}
+return toolSchema;
+},
+}
+);
+
+console.log(JSON.stringify(tools, null, 2));
+
+````
+```python Python maxLines=60 wordWrap
+
+````
+
+</CodeGroup>
+
+In using the above modified tool schema, the `page` argument is removed and the `size` argument is required.
+
+You can test this out by viewing the tool call response in the LLM too!
+
+<Accordion title="Schema modified tool call">
+<CodeGroup>
+
+```typescript TypeScript maxLines=60 wordWrap
+import { Composio } from '@composio/core';
+import { OpenAI } from 'openai';
+
+const composio = new Composio({
+ apiKey: process.env.COMPOSIO_API_KEY,
+});
+const openai = new OpenAI();
+
+const userId = '[email protected]';
+
+const tools = await composio.tools.get(
+ userId,
+ {
+ tools: ['HACKERNEWS_GET_LATEST_POSTS', 'HACKERNEWS_GET_USER'],
+ },
+ {
+ modifyToolSchema: (toolSlug, _, toolSchema) => {
+ if (toolSlug === 'HACKERNEWS_GET_LATEST_POSTS') {
+ const { inputParameters } = toolSchema;
+ if (inputParameters?.properties) {
+ delete inputParameters.properties['page'];
+ }
+ inputParameters.required = ['size'];
+ }
+ return toolSchema;
+ },
+ }
+);
+
+console.log(JSON.stringify(tools, null, 2));
+
+const response = await openai.chat.completions.create({
+ model: 'gpt-4o-mini',
+ messages: [
+ {
+ role: 'system',
+ content: 'You are a helpful assistant that can help with tasks.',
+ },
+ { role: 'user', content: 'Get the latest posts from Hacker News' },
+ ],
+ tools: tools,
+ tool_choice: 'auto',
+});
+
+console.log(response.choices[0].message.tool_calls);
+```
+
+```python Python maxLines=60 wordWrap
+
+```
+
+</CodeGroup>
+</Accordion>
diff --git a/fern/pages/triggers/using-triggers.mdx b/fern/docs/triggers/using-triggers.mdx
similarity index 80%
rename from fern/pages/triggers/using-triggers.mdx
rename to fern/docs/triggers/using-triggers.mdx
index 77aad96d4..e3d158a47 100644
--- a/fern/pages/triggers/using-triggers.mdx
+++ b/fern/docs/triggers/using-triggers.mdx
@@ -1,8 +1,8 @@
---
title: Using Triggers
subtitle: Send payloads to your system based on external events
-image: "https://og.composio.dev/api/og?title=Using%20Triggers" # image for socials
-keywords: ""
+image: 'https://og.composio.dev/api/og?title=Using%20Triggers' # image for socials
+keywords: ''
hide-nav-links: true
---
@@ -10,33 +10,33 @@ Triggers act as a notification system for your AI applications, enabling your ag
When these events take place, triggers capture relevant information and deliver structured payloads directly to your system, facilitating timely and context-aware responses.
-
<Frame caption="Triggers through Composio" background="subtle">
-![Triggers Overview](../../assets/images/triggers.png)
+ ![Triggers Overview](../assets/images/triggers.png)
</Frame>
-
<Tip title="Prerequisites">
-Before proceeding, ensure you've created an auth config and established a connection to your external account (e.g., Slack, GitHub).
+ Before proceeding, ensure you've created an auth config and established a connection to your
+ external account (e.g., Slack, GitHub).
</Tip>
## Creating a trigger
+
Head to the any app that supports triggers, eg [Slack](https://app.composio.dev/app/slack) in the dashboard and enable the trigger of choice.
-<video
- src="../../assets/videos/enabling-triggers.mp4"
- width="854"
- height="480"
- autoplay
- loop
- playsinline
- controls
->
-</video>
+
+<video
+ src="../assets/videos/enabling-triggers.mp4"
+ width="854"
+ height="480"
+ autoplay
+ loop
+ playsinline
+ controls
+></video>
The [triggers page](https://app.composio.dev/active_triggers?page=1) will show you all the triggers that are enabled for your account.
<Frame caption="Triggers page" background="subtle">
-<img src="../../assets/images/manage-triggers.png" alt="Manage triggers" />
+ <img src="../assets/images/manage-triggers.png" alt="Manage triggers" />
</Frame>
You create triggers through the SDK as well.
@@ -75,13 +75,14 @@ const connections = await composio.connectedAccounts.list({userIds: [userId]});
console.log(connections.items[0].id);
const createResponse = await composio.triggers.create("GITHUB_STAR_ADDED_EVENT", {
- connectedAccountId: connections.items[0].id,
- triggerConfig: {
- owner: "composiohq",
- repo: "composio",
- },
+connectedAccountId: connections.items[0].id,
+triggerConfig: {
+owner: "composiohq",
+repo: "composio",
+},
});
-```
+
+````
```python Python
# Fetch connected account for user
user_id = "[email protected]"
@@ -102,10 +103,12 @@ instance = composio.triggers.create(
},
)
print(instance)
-```
+````
+
</CodeGroup>
## Subscribing to triggers
+
You can subscribe to triggers to receive payloads from the trigger.
You subscribe to multiple trigger events by configuring the filters.
@@ -141,8 +144,9 @@ subscription = composio.triggers.subscribe()
)
def handle_github_event(data):
- print(data)
-```
+print(data)
+
+````
</CodeGroup>
### Trigger payload types
@@ -153,21 +157,29 @@ When subscribing to triggers, it is helpful to know the payload type recieved fr
const triggerType = await composio.triggers.getType("SLACK_RECEIVE_MESSAGE");
console.log(triggerType.payload);
-```
+````
+
```python Python
# Get a trigger by id
trigger = composio.triggers.get_type(slug="GITHUB_COMMIT_EVENT")
print(trigger.payload)
```
+
</CodeGroup>
## Specifying trigger configuration
+
In some cases, triggers require certain configuration to set the correct events. You can inspect and add these properties while enabling the triggers.
The dashboard will show you the trigger configuration to fill in.
<Frame caption="Trigger configuration" background="subtle">
-<img src="../../assets/images/trigger-config.png" alt="Trigger configuration" width="400px" height="auto"/>
+ <img
+ src="../assets/images/trigger-config.png"
+ alt="Trigger configuration"
+ width="400px"
+ height="auto"
+ />
</Frame>
<CodeGroup>
@@ -175,14 +187,15 @@ The dashboard will show you the trigger configuration to fill in.
const triggerType = await composio.triggers.getType("GITHUB_STAR_ADDED_EVENT");
console.log(triggerType.config);
-```
+
+````
```python Python
# Get a trigger by id
trigger = composio.triggers.get_type(slug="GITHUB_COMMIT_EVENT")
print(trigger.config)
-```
-</CodeGroup>
+````
+</CodeGroup>
<CodeGroup>
```typescript TypeScript
@@ -206,30 +219,20 @@ instance = composio.triggers.create(
```
</CodeGroup>
-
## Enabling/Disabling triggers
+
In cases where the trigger isn't required for the system, it can be disabled.
<CodeGroup>
-```typescript TypeScript
-await composio.triggers.disable("ti_abcd123");
-```
-```python Python
-# Disable a trigger instance
-disabled_instance = composio.triggers.disable(trigger_id="ti_abcd123")
-print(disabled_instance)
-```
+ ```typescript TypeScript await composio.triggers.disable("ti_abcd123"); ``` ```python Python #
+ Disable a trigger instance disabled_instance = composio.triggers.disable(trigger_id="ti_abcd123")
+ print(disabled_instance) ```
</CodeGroup>
If needed, the trigger can be enabled again.
<CodeGroup>
-```typescript TypeScript
-await composio.triggers.enable("ti_abcd123);
-```
-```python Python
-# Enable a trigger instance
-enabled_instance = composio.triggers.enable(trigger_id="ti_abcd123")
-print(enabled_instance)
-```
+ ```typescript TypeScript await composio.triggers.enable("ti_abcd123); ``` ```python Python #
+ Enable a trigger instance enabled_instance = composio.triggers.enable(trigger_id="ti_abcd123")
+ print(enabled_instance) ```
</CodeGroup>
diff --git a/fern/icons/arrow-right.tsx b/fern/icons/arrow-right.tsx
deleted file mode 100644
index 04ec9ee8d..000000000
--- a/fern/icons/arrow-right.tsx
+++ /dev/null
@@ -1,34 +0,0 @@
-import { ReactElement } from "react";
-
-export default function ArrowRightIcon({
- size = 10,
-}: {
- size?: number;
-}): ReactElement {
- return (
- <svg
- width={size}
- height={size}
- viewBox="0 0 10 10"
- fill="none"
- xmlns="http://www.w3.org/2000/svg"
- >
- <path
- d="M8.63218 0.366821C8.35604 0.366821 8.13218 0.590679 8.13218 0.866821V8.39364C8.13218 8.66978 8.35604 8.89364 8.63218 8.89364H9.13218C9.40832 8.89364 9.63218 8.66978 9.63218 8.39364V0.866821C9.63218 0.590678 9.40832 0.366821 9.13218 0.366821H8.63218Z"
- fill="#39594d"
- ></path>
- <path
- d="M9.63332 1.36796C9.63332 1.6441 9.40946 1.86796 9.13332 1.86796H1.6065C1.33035 1.86796 1.1065 1.6441 1.1065 1.36796V0.867956C1.1065 0.591813 1.33035 0.367956 1.6065 0.367956H9.13332C9.40946 0.367956 9.63332 0.591813 9.63332 0.867956V1.36796Z"
- fill="#39594d"
- ></path>
- <path
- d="M8.35063 2.02206C8.54588 2.21732 8.54588 2.5339 8.35062 2.72916L6.04601 5.03377C5.9278 5.15198 5.75833 5.20329 5.59439 5.1705L5.00515 5.05264C4.61356 4.97432 4.46728 4.49118 4.74966 4.2088L7.28997 1.66849C7.48523 1.47323 7.80182 1.47323 7.99708 1.6685L8.35063 2.02206Z"
- fill="#39594d"
- ></path>
- <path
- d="M0.199967 9.46558C0.0047119 9.27032 0.0047151 8.95374 0.199974 8.75848L3.21169 5.74677C3.3299 5.62855 3.49938 5.57724 3.66331 5.61003L4.25256 5.72789C4.64414 5.80621 4.79042 6.28935 4.50804 6.57173L1.26063 9.81915C1.06536 10.0144 0.748774 10.0144 0.553513 9.81914L0.199967 9.46558Z"
- fill="#39594d"
- ></path>
- </svg>
- );
-}
diff --git a/fern/package.json b/fern/package.json
index a6a993f8d..85308d5ed 100644
--- a/fern/package.json
+++ b/fern/package.json
@@ -6,20 +6,22 @@
"packageManager": "[email protected]",
"scripts": {
"preinstall": "npx only-allow pnpm",
- "clean": "rm -rf ./dist && rm -rf ./node_modules && rm -rf ./pages/examples/dist",
+ "clean": "rm -rf ./dist && rm -rf ./node_modules && rm -rf ./docs/snippets/dist",
"compile": "npx tailwindcss -i ./assets/input.css -o ./dist/output.css",
"tools:generate": "uv run generators/tool_doc_generator/main.py --workers 10",
"tools:comment": "uv run python scripts/manage-tool-docs.py comment",
"tools:uncomment": "uv run python scripts/manage-tool-docs.py uncomment",
"sdkdocs": "pnpm exec typedoc",
"api:pull": "bash scripts/pull-openapi-spec.sh",
- "examples:build": "bun run scripts/examples-dev.ts",
- "examples:dev": "bun run scripts/examples-dev.ts --watch",
- "check": "pnpm tools:comment && pnpm examples:build && fern check",
- "dev": "pnpm tools:comment && pnpm examples:build && fern docs dev",
- "links": "pnpm tools:uncomment && pnpm examples:build && fern docs broken-links",
- "preview": "pnpm tools:uncomment && pnpm examples:build && fern generate --docs --preview --log-level debug",
- "publish": "echo 'use only in emergencies, recommend making a PR' && pnpm tools:uncomment && pnpm examples:build && fern generate --docs",
+ "snippets:build": "bun run scripts/build-snippets.ts",
+ "snippets:dev": "bun run scripts/build-snippets.ts --watch",
+ "add-og": "uv run scripts/add_og_imgs.py",
+ "check": "fern check",
+ "dev": "fern docs dev",
+ "links": "fern docs broken-links",
+ "build": "echo 'Build orchestrated by Turbo'",
+ "preview": "fern generate --docs --preview --log-level debug",
+ "publish": "echo 'use only in emergencies, recommend making a PR' && fern generate --docs",
"generate": "pnpm tools:generate && pnpm sdkdocs",
"prepublish": "exit 1"
},
diff --git a/fern/pages/sdk/python/index.mdx b/fern/pages/sdk/python/index.mdx
deleted file mode 100644
index e69de29bb..000000000
diff --git a/fern/pages/sdk/typescript/AuthConfigs/README.mdx b/fern/pages/sdk/typescript/AuthConfigs/README.mdx
deleted file mode 100644
index 312546c18..000000000
--- a/fern/pages/sdk/typescript/AuthConfigs/README.mdx
+++ /dev/null
@@ -1,23 +0,0 @@
-[**@composio/core**](../README.mdx)
-
-***
-
-[@composio/core](../README.mdx) / AuthConfigs
-
-# AuthConfigs
-
-## Fileoverview
-
-Auth configs class for Composio SDK, used to manage authentication configurations.
-
-## Author
-
-Musthaq Ahamad <[email protected]>
-
-## Date
-
-2025-05-05
-
-## Classes
-
-- [AuthConfigs](classes/AuthConfigs.mdx)
diff --git a/fern/pages/sdk/typescript/AuthConfigs/classes/AuthConfigs.mdx b/fern/pages/sdk/typescript/AuthConfigs/classes/AuthConfigs.mdx
deleted file mode 100644
index 22c94df3a..000000000
--- a/fern/pages/sdk/typescript/AuthConfigs/classes/AuthConfigs.mdx
+++ /dev/null
@@ -1,409 +0,0 @@
-[**@composio/core**](../../README.mdx)
-
-***
-
-[@composio/core](../../README.mdx) / [AuthConfigs](../README.mdx) / AuthConfigs
-
-# Class: AuthConfigs
-
-Defined in: [packages/core/src/models/AuthConfigs.ts:37](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/AuthConfigs.ts#L37)
-
-AuthConfigs class
-
-This class is used to manage authentication configurations in the Composio SDK.
-Auth configs are used to configure authentication providers and settings.
-
-## Constructors
-
-### Constructor
-
-> **new AuthConfigs**(`client`): `AuthConfigs`
-
-Defined in: [packages/core/src/models/AuthConfigs.ts:40](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/AuthConfigs.ts#L40)
-
-#### Parameters
-
-##### client
-
-`Composio`
-
-#### Returns
-
-`AuthConfigs`
-
-## Methods
-
-### create()
-
-> **create**(`toolkit`, `options`): `Promise`\<\{ \}\>
-
-Defined in: [packages/core/src/models/AuthConfigs.ts:160](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/AuthConfigs.ts#L160)
-
-Create a new auth config
-
-#### Parameters
-
-##### toolkit
-
-`string`
-
-Unique identifier of the toolkit
-
-##### options
-
-Options for creating a new auth config
-
-\{ \} | \{ \}
-
-#### Returns
-
-`Promise`\<\{ \}\>
-
-Created auth config
-
-#### Example
-
-```ts
-const authConfig = await authConfigs.create('my-toolkit', {
- type: AuthConfigTypes.CUSTOM,
- name: 'My Custom Auth Config',
- authScheme: AuthSchemeTypes.API_KEY,
- credentials: {
- apiKey: '1234567890',
- },
-});
-```
-
-#### Link
-
-https://docs.composio.dev/reference/auth-configs/create-auth-config
-
-***
-
-### delete()
-
-> **delete**(`nanoid`): `Promise`\<`unknown`\>
-
-Defined in: [packages/core/src/models/AuthConfigs.ts:298](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/AuthConfigs.ts#L298)
-
-Deletes an authentication configuration.
-
-This method permanently removes an auth config from the Composio platform.
-This action cannot be undone and will prevent any connected accounts that use
-this auth config from functioning.
-
-#### Parameters
-
-##### nanoid
-
-`string`
-
-The unique identifier of the auth config to delete
-
-#### Returns
-
-`Promise`\<`unknown`\>
-
-The deletion response
-
-#### Throws
-
-If the auth config doesn't exist or cannot be deleted
-
-#### Example
-
-```typescript
-// Delete an auth config
-await composio.authConfigs.delete('auth_abc123');
-```
-
-***
-
-### disable()
-
-> **disable**(`nanoid`): `Promise`\<`unknown`\>
-
-Defined in: [packages/core/src/models/AuthConfigs.ts:368](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/AuthConfigs.ts#L368)
-
-Disables an authentication configuration.
-
-This is a convenience method that calls updateStatus with 'DISABLED'.
-When disabled, the auth config cannot be used to create new connected accounts
-or authenticate with third-party services, but existing connections may continue to work.
-
-#### Parameters
-
-##### nanoid
-
-`string`
-
-The unique identifier of the auth config to disable
-
-#### Returns
-
-`Promise`\<`unknown`\>
-
-The updated auth config details
-
-#### Throws
-
-If the auth config cannot be found or disabled
-
-#### Example
-
-```typescript
-// Disable an auth config
-await composio.authConfigs.disable('auth_abc123');
-```
-
-***
-
-### enable()
-
-> **enable**(`nanoid`): `Promise`\<`unknown`\>
-
-Defined in: [packages/core/src/models/AuthConfigs.ts:347](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/AuthConfigs.ts#L347)
-
-Enables an authentication configuration.
-
-This is a convenience method that calls updateStatus with 'ENABLED'.
-When enabled, the auth config can be used to create new connected accounts
-and authenticate with third-party services.
-
-#### Parameters
-
-##### nanoid
-
-`string`
-
-The unique identifier of the auth config to enable
-
-#### Returns
-
-`Promise`\<`unknown`\>
-
-The updated auth config details
-
-#### Throws
-
-If the auth config cannot be found or enabled
-
-#### Example
-
-```typescript
-// Enable an auth config
-await composio.authConfigs.enable('auth_abc123');
-```
-
-***
-
-### get()
-
-> **get**(`nanoid`): `Promise`\<\{ \}\>
-
-Defined in: [packages/core/src/models/AuthConfigs.ts:223](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/AuthConfigs.ts#L223)
-
-Retrieves a specific authentication configuration by its ID.
-
-This method fetches detailed information about a single auth config
-and transforms the response to the SDK's standardized format.
-
-#### Parameters
-
-##### nanoid
-
-`string`
-
-The unique identifier of the auth config to retrieve
-
-#### Returns
-
-`Promise`\<\{ \}\>
-
-The auth config details
-
-#### Throws
-
-If the auth config cannot be found or an API error occurs
-
-#### Throws
-
-If the response fails validation
-
-#### Example
-
-```typescript
-// Get an auth config by ID
-const authConfig = await composio.authConfigs.get('auth_abc123');
-console.log(authConfig.name); // e.g., 'GitHub Auth'
-console.log(authConfig.toolkit.slug); // e.g., 'github'
-```
-
-***
-
-### getClient()
-
-> `protected` **getClient**(): `Composio`
-
-Defined in: [packages/core/src/models/AuthConfigs.ts:50](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/AuthConfigs.ts#L50)
-
-Protected getter for the client instance.
-This is primarily used for testing purposes.
-
-#### Returns
-
-`Composio`
-
-***
-
-### list()
-
-> **list**(`query?`): `Promise`\<\{ \}\>
-
-Defined in: [packages/core/src/models/AuthConfigs.ts:121](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/AuthConfigs.ts#L121)
-
-Lists authentication configurations based on provided filter criteria.
-
-This method retrieves auth configs from the Composio API, transforms them to the SDK format,
-and supports filtering by various parameters.
-
-#### Parameters
-
-##### query?
-
-Optional query parameters for filtering auth configs
-
-#### Returns
-
-`Promise`\<\{ \}\>
-
-A paginated list of auth configurations
-
-#### Throws
-
-If the query parameters or response fail validation
-
-#### Example
-
-```typescript
-// List all auth configs
-const allConfigs = await composio.authConfigs.list();
-
-// List auth configs for a specific toolkit
-const githubConfigs = await composio.authConfigs.list({
- toolkit: 'github'
-});
-
-// List Composio-managed auth configs
-const managedConfigs = await composio.authConfigs.list({
- isComposioManaged: true
-});
-```
-
-***
-
-### update()
-
-> **update**(`nanoid`, `data`): `Promise`\<`unknown`\>
-
-Defined in: [packages/core/src/models/AuthConfigs.ts:258](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/AuthConfigs.ts#L258)
-
-Updates an existing authentication configuration.
-
-This method allows you to modify properties of an auth config such as credentials,
-scopes, or tool restrictions. The update type (custom or default) determines which
-fields can be updated.
-
-#### Parameters
-
-##### nanoid
-
-`string`
-
-The unique identifier of the auth config to update
-
-##### data
-
-The data to update, which can be either custom or default type
-
-\{ \} | \{ \}
-
-#### Returns
-
-`Promise`\<`unknown`\>
-
-The updated auth config
-
-#### Throws
-
-If the update parameters are invalid
-
-#### Throws
-
-If the auth config cannot be found or updated
-
-#### Example
-
-```typescript
-// Update a custom auth config with new credentials
-const updatedConfig = await composio.authConfigs.update('auth_abc123', {
- type: 'custom',
- credentials: {
- apiKey: 'new-api-key-value'
- }
-});
-
-// Update a default auth config with new scopes
-const updatedConfig = await composio.authConfigs.update('auth_abc123', {
- type: 'default',
- scopes: ['read:user', 'repo']
-});
-```
-
-***
-
-### updateStatus()
-
-> **updateStatus**(`status`, `nanoid`): `Promise`\<`unknown`\>
-
-Defined in: [packages/core/src/models/AuthConfigs.ts:323](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/AuthConfigs.ts#L323)
-
-Updates the status of an authentication configuration.
-
-This method allows you to enable or disable an auth config. When disabled,
-the auth config cannot be used to create new connected accounts or authenticate
-with third-party services.
-
-#### Parameters
-
-##### status
-
-The status to set ('ENABLED' or 'DISABLED')
-
-`"ENABLED"` | `"DISABLED"`
-
-##### nanoid
-
-`string`
-
-The unique identifier of the auth config
-
-#### Returns
-
-`Promise`\<`unknown`\>
-
-The updated auth config details
-
-#### Throws
-
-If the auth config cannot be found or the status cannot be updated
-
-#### Example
-
-```typescript
-// Disable an auth config
-await composio.authConfigs.updateStatus('DISABLED', 'auth_abc123');
-
-// Enable an auth config
-await composio.authConfigs.updateStatus('ENABLED', 'auth_abc123');
-```
diff --git a/fern/pages/sdk/typescript/ConnectedAccounts/README.mdx b/fern/pages/sdk/typescript/ConnectedAccounts/README.mdx
deleted file mode 100644
index 5d812a56f..000000000
--- a/fern/pages/sdk/typescript/ConnectedAccounts/README.mdx
+++ /dev/null
@@ -1,23 +0,0 @@
-[**@composio/core**](../README.mdx)
-
-***
-
-[@composio/core](../README.mdx) / ConnectedAccounts
-
-# ConnectedAccounts
-
-## Fileoverview
-
-Connected accounts class for Composio SDK, used to manage connected accounts of a user.
-
-## Author
-
-Musthaq Ahamad <[email protected]>
-
-## Date
-
-2025-05-05
-
-## Classes
-
-- [ConnectedAccounts](classes/ConnectedAccounts.mdx)
diff --git a/fern/pages/sdk/typescript/ConnectedAccounts/classes/ConnectedAccounts.mdx b/fern/pages/sdk/typescript/ConnectedAccounts/classes/ConnectedAccounts.mdx
deleted file mode 100644
index f499f3ffa..000000000
--- a/fern/pages/sdk/typescript/ConnectedAccounts/classes/ConnectedAccounts.mdx
+++ /dev/null
@@ -1,411 +0,0 @@
-[**@composio/core**](../../README.mdx)
-
-***
-
-[@composio/core](../../README.mdx) / [ConnectedAccounts](../README.mdx) / ConnectedAccounts
-
-# Class: ConnectedAccounts
-
-Defined in: [packages/core/src/models/ConnectedAccounts.ts:34](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/ConnectedAccounts.ts#L34)
-
-ConnectedAccounts class
-
-This class is used to manage connected accounts in the Composio SDK.
-Connected accounts are used to authenticate with third-party services.
-
-## Constructors
-
-### Constructor
-
-> **new ConnectedAccounts**(`client`): `ConnectedAccounts`
-
-Defined in: [packages/core/src/models/ConnectedAccounts.ts:37](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/ConnectedAccounts.ts#L37)
-
-#### Parameters
-
-##### client
-
-`Composio`
-
-#### Returns
-
-`ConnectedAccounts`
-
-## Methods
-
-### delete()
-
-> **delete**(`nanoid`): `Promise`\<`ConnectedAccountDeleteResponse`\>
-
-Defined in: [packages/core/src/models/ConnectedAccounts.ts:218](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/ConnectedAccounts.ts#L218)
-
-Deletes a connected account.
-
-This method permanently removes a connected account from the Composio platform.
-This action cannot be undone and will revoke any access tokens associated with the account.
-
-#### Parameters
-
-##### nanoid
-
-`string`
-
-The unique identifier of the connected account to delete
-
-#### Returns
-
-`Promise`\<`ConnectedAccountDeleteResponse`\>
-
-The deletion response
-
-#### Throws
-
-If the account doesn't exist or cannot be deleted
-
-#### Example
-
-```typescript
-// Delete a connected account
-await composio.connectedAccounts.delete('conn_abc123');
-```
-
-***
-
-### disable()
-
-> **disable**(`nanoid`): `Promise`\<`ConnectedAccountUpdateStatusResponse`\>
-
-Defined in: [packages/core/src/models/ConnectedAccounts.ts:303](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/ConnectedAccounts.ts#L303)
-
-Disable a connected account
-
-#### Parameters
-
-##### nanoid
-
-`string`
-
-Unique identifier of the connected account
-
-#### Returns
-
-`Promise`\<`ConnectedAccountUpdateStatusResponse`\>
-
-Updated connected account details
-
-#### Example
-
-```typescript
-// Disable a connected account
-const disabledAccount = await composio.connectedAccounts.disable('conn_abc123');
-console.log(disabledAccount.isDisabled); // true
-
-// You can also use updateStatus with a reason
-// const disabledAccount = await composio.connectedAccounts.updateStatus('conn_abc123', {
-// enabled: false,
-// reason: 'No longer needed'
-// });
-```
-
-***
-
-### enable()
-
-> **enable**(`nanoid`): `Promise`\<`ConnectedAccountUpdateStatusResponse`\>
-
-Defined in: [packages/core/src/models/ConnectedAccounts.ts:281](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/ConnectedAccounts.ts#L281)
-
-Enable a connected account
-
-#### Parameters
-
-##### nanoid
-
-`string`
-
-Unique identifier of the connected account
-
-#### Returns
-
-`Promise`\<`ConnectedAccountUpdateStatusResponse`\>
-
-Updated connected account details
-
-#### Example
-
-```typescript
-// Enable a previously disabled connected account
-const enabledAccount = await composio.connectedAccounts.enable('conn_abc123');
-console.log(enabledAccount.isDisabled); // false
-```
-
-***
-
-### get()
-
-> **get**(`nanoid`): `Promise`\<\{ \}\>
-
-Defined in: [packages/core/src/models/ConnectedAccounts.ts:197](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/ConnectedAccounts.ts#L197)
-
-Retrieves a specific connected account by its ID.
-
-This method fetches detailed information about a single connected account
-and transforms the response to the SDK's standardized format.
-
-#### Parameters
-
-##### nanoid
-
-`string`
-
-The unique identifier of the connected account
-
-#### Returns
-
-`Promise`\<\{ \}\>
-
-The connected account details
-
-#### Throws
-
-If the connected account cannot be found or an API error occurs
-
-#### Example
-
-```typescript
-// Get a connected account by ID
-const account = await composio.connectedAccounts.get('conn_abc123');
-console.log(account.status); // e.g., 'ACTIVE'
-console.log(account.toolkit.slug); // e.g., 'github'
-```
-
-***
-
-### initiate()
-
-> **initiate**(`userId`, `authConfigId`, `options?`): `Promise`\<[`ConnectionRequest`](../../ConnectionRequest/classes/ConnectionRequest.mdx)\>
-
-Defined in: [packages/core/src/models/ConnectedAccounts.ts:121](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/ConnectedAccounts.ts#L121)
-
-Compound function to create a new connected account.
-This function creates a new connected account and returns a connection request.
-Users can then wait for the connection to be established using the `waitForConnection` method.
-
-#### Parameters
-
-##### userId
-
-`string`
-
-User ID of the connected account
-
-##### authConfigId
-
-`string`
-
-Auth config ID of the connected account
-
-##### options?
-
-#### Returns
-
-`Promise`\<[`ConnectionRequest`](../../ConnectionRequest/classes/ConnectionRequest.mdx)\>
-
-Connection request object
-
-#### Example
-
-```ts
-const connectionRequest = await composio.createConnectedAccount('user_123', 'auth_config_123', {
- data: {
- name: 'My Connected Account',
- },
-});
-```
-
-#### Link
-
-https://docs.composio.dev/reference/connected-accounts/create-connected-account
-
-***
-
-### list()
-
-> **list**(`query?`): `Promise`\<\{ \}\>
-
-Defined in: [packages/core/src/models/ConnectedAccounts.ts:66](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/ConnectedAccounts.ts#L66)
-
-Lists all connected accounts based on provided filter criteria.
-
-This method retrieves connected accounts from the Composio API with optional filtering.
-
-#### Parameters
-
-##### query?
-
-Optional query parameters for filtering connected accounts
-
-#### Returns
-
-`Promise`\<\{ \}\>
-
-A paginated list of connected accounts
-
-#### Throws
-
-If the query fails validation against the expected schema
-
-#### Example
-
-```typescript
-// List all connected accounts
-const allAccounts = await composio.connectedAccounts.list();
-
-// List accounts for a specific user
-const userAccounts = await composio.connectedAccounts.list({
- userIds: ['user123']
-});
-
-// List accounts for a specific toolkit
-const githubAccounts = await composio.connectedAccounts.list({
- toolkitSlugs: ['github']
-});
-```
-
-***
-
-### refresh()
-
-> **refresh**(`nanoid`): `Promise`\<`ConnectedAccountRefreshResponse`\>
-
-Defined in: [packages/core/src/models/ConnectedAccounts.ts:238](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/ConnectedAccounts.ts#L238)
-
-Refreshes a connected account's authentication credentials.
-
-This method attempts to refresh OAuth tokens or other credentials associated with
-the connected account. This is useful when a token has expired or is about to expire.
-
-#### Parameters
-
-##### nanoid
-
-`string`
-
-The unique identifier of the connected account to refresh
-
-#### Returns
-
-`Promise`\<`ConnectedAccountRefreshResponse`\>
-
-The response containing the refreshed account details
-
-#### Throws
-
-If the account doesn't exist or credentials cannot be refreshed
-
-#### Example
-
-```typescript
-// Refresh a connected account's credentials
-const refreshedAccount = await composio.connectedAccounts.refresh('conn_abc123');
-```
-
-***
-
-### updateStatus()
-
-> **updateStatus**(`nanoid`, `params`): `Promise`\<`ConnectedAccountUpdateStatusResponse`\>
-
-Defined in: [packages/core/src/models/ConnectedAccounts.ts:262](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/ConnectedAccounts.ts#L262)
-
-Update the status of a connected account
-
-#### Parameters
-
-##### nanoid
-
-`string`
-
-Unique identifier of the connected account
-
-##### params
-
-`ConnectedAccountUpdateStatusParams`
-
-Parameters for updating the status
-
-#### Returns
-
-`Promise`\<`ConnectedAccountUpdateStatusResponse`\>
-
-Updated connected account details
-
-#### Example
-
-```typescript
-// Enable a connected account
-const updatedAccount = await composio.connectedAccounts.updateStatus('conn_abc123', {
- enabled: true
-});
-
-// Disable a connected account with a reason
-const disabledAccount = await composio.connectedAccounts.updateStatus('conn_abc123', {
- enabled: false,
- reason: 'Token expired'
-});
-```
-
-***
-
-### waitForConnection()
-
-> **waitForConnection**(`connectedAccountId`, `timeout?`): `Promise`\<\{ \}\>
-
-Defined in: [packages/core/src/models/ConnectedAccounts.ts:171](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/ConnectedAccounts.ts#L171)
-
-Waits for a connection request to complete and become active.
-
-This method continuously polls the Composio API to check the status of a connection
-until it either becomes active, enters a terminal error state, or times out.
-
-#### Parameters
-
-##### connectedAccountId
-
-`string`
-
-The ID of the connected account to wait for
-
-##### timeout?
-
-`number` = `60000`
-
-Maximum time to wait in milliseconds (default: 60 seconds)
-
-#### Returns
-
-`Promise`\<\{ \}\>
-
-The finalized connected account data
-
-#### Throws
-
-If the connected account cannot be found
-
-#### Throws
-
-If the connection enters a failed, expired, or deleted state
-
-#### Throws
-
-If the connection does not complete within the timeout period
-
-#### Example
-
-```typescript
-// Wait for a connection to complete with default timeout
-const connectedAccount = await composio.connectedAccounts.waitForConnection('conn_123abc');
-
-// Wait with a custom timeout of 2 minutes
-const connectedAccount = await composio.connectedAccounts.waitForConnection('conn_123abc', 120000);
-```
diff --git a/fern/pages/sdk/typescript/ConnectionRequest/README.mdx b/fern/pages/sdk/typescript/ConnectionRequest/README.mdx
deleted file mode 100644
index 32afd9f34..000000000
--- a/fern/pages/sdk/typescript/ConnectionRequest/README.mdx
+++ /dev/null
@@ -1,27 +0,0 @@
-[**@composio/core**](../README.mdx)
-
-***
-
-[@composio/core](../README.mdx) / ConnectionRequest
-
-# ConnectionRequest
-
-## Fileoverview
-
-Connection request class for Composio SDK, used to manage an initiated connection request.
-
-## Author
-
-Musthaq Ahamad <[email protected]>
-
-## Date
-
-2025-05-05
-
-## Classes
-
-- [ConnectionRequest](classes/ConnectionRequest.mdx)
-
-## Functions
-
-- [connectionRequest](functions/connectionRequest.mdx)
diff --git a/fern/pages/sdk/typescript/ConnectionRequest/classes/ConnectionRequest.mdx b/fern/pages/sdk/typescript/ConnectionRequest/classes/ConnectionRequest.mdx
deleted file mode 100644
index 759c99054..000000000
--- a/fern/pages/sdk/typescript/ConnectionRequest/classes/ConnectionRequest.mdx
+++ /dev/null
@@ -1,146 +0,0 @@
-[**@composio/core**](../../README.mdx)
-
-***
-
-[@composio/core](../../README.mdx) / [ConnectionRequest](../README.mdx) / ConnectionRequest
-
-# Class: ConnectionRequest
-
-Defined in: [packages/core/src/models/ConnectionRequest.ts:21](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/ConnectionRequest.ts#L21)
-
-## Constructors
-
-### Constructor
-
-> **new ConnectionRequest**(`client`, `connectedAccountId`, `status?`, `redirectUrl?`): `ConnectionRequest`
-
-Defined in: [packages/core/src/models/ConnectionRequest.ts:27](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/ConnectionRequest.ts#L27)
-
-#### Parameters
-
-##### client
-
-`Composio`
-
-##### connectedAccountId
-
-`string`
-
-##### status?
-
-`ConnectedAccountStatus`
-
-##### redirectUrl?
-
-`string`
-
-#### Returns
-
-`ConnectionRequest`
-
-## Properties
-
-### id
-
-> **id**: `string`
-
-Defined in: [packages/core/src/models/ConnectionRequest.ts:23](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/ConnectionRequest.ts#L23)
-
-***
-
-### redirectUrl?
-
-> `optional` **redirectUrl**: `string`
-
-Defined in: [packages/core/src/models/ConnectionRequest.ts:25](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/ConnectionRequest.ts#L25)
-
-***
-
-### status?
-
-> `optional` **status**: `ConnectedAccountStatus`
-
-Defined in: [packages/core/src/models/ConnectionRequest.ts:24](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/ConnectionRequest.ts#L24)
-
-## Methods
-
-### toJSON()
-
-> **toJSON**(): `Record`\<`string`, `unknown`\>
-
-Defined in: [packages/core/src/models/ConnectionRequest.ts:131](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/ConnectionRequest.ts#L131)
-
-Returns a JSON-serializable representation of the connection request
-Excludes the private client property to avoid cyclic reference issues
-
-#### Returns
-
-`Record`\<`string`, `unknown`\>
-
-***
-
-### toString()
-
-> **toString**(): `string`
-
-Defined in: [packages/core/src/models/ConnectionRequest.ts:142](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/ConnectionRequest.ts#L142)
-
-Returns a string representation of the connection request
-
-#### Returns
-
-`string`
-
-***
-
-### waitForConnection()
-
-> **waitForConnection**(`timeout?`): `Promise`\<\{ \}\>
-
-Defined in: [packages/core/src/models/ConnectionRequest.ts:66](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/ConnectionRequest.ts#L66)
-
-Waits for the connection request to complete and become active.
-
-This method continuously polls the Composio API to check the status of the connection request
-until it either becomes active, enters a terminal error state, or times out.
-
-#### Parameters
-
-##### timeout?
-
-`number` = `60000`
-
-Maximum time to wait in milliseconds before timing out (default: 60 seconds)
-
-#### Returns
-
-`Promise`\<\{ \}\>
-
-The final connected account response when successful
-
-#### Throws
-
-If the connected account cannot be found
-
-#### Throws
-
-If the connection enters a failed, expired, or deleted state
-
-#### Throws
-
-If the connection request does not complete within the timeout period
-
-#### Example
-
-```typescript
-// Wait for connection with default timeout (60 seconds)
-try {
- const connection = await connectionRequest.waitForConnection();
- console.log('Connection established:', connection.id);
-} catch (error) {
- console.error('Connection failed:', error.message);
-}
-
-// Wait for connection with custom timeout (2 minutes)
-const connection = await connectionRequest.waitForConnection(120000);
-```
diff --git a/fern/pages/sdk/typescript/ConnectionRequest/functions/connectionRequest.mdx b/fern/pages/sdk/typescript/ConnectionRequest/functions/connectionRequest.mdx
deleted file mode 100644
index e58a5b4f3..000000000
--- a/fern/pages/sdk/typescript/ConnectionRequest/functions/connectionRequest.mdx
+++ /dev/null
@@ -1,39 +0,0 @@
-[**@composio/core**](../../README.mdx)
-
-***
-
-[@composio/core](../../README.mdx) / [ConnectionRequest](../README.mdx) / connectionRequest
-
-# Function: connectionRequest()
-
-> **connectionRequest**(`client`): `object`
-
-Defined in: [packages/core/src/models/ConnectionRequest.ts:147](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/ConnectionRequest.ts#L147)
-
-## Parameters
-
-### client
-
-`Composio`
-
-## Returns
-
-`object`
-
-### waitForConnection()
-
-> **waitForConnection**: (`connectedAccountId`, `timeout`) => `Promise`\<\{ \}\>
-
-#### Parameters
-
-##### connectedAccountId
-
-`string`
-
-##### timeout
-
-`number` = `60000`
-
-#### Returns
-
-`Promise`\<\{ \}\>
diff --git a/fern/pages/sdk/typescript/CustomTools/README.mdx b/fern/pages/sdk/typescript/CustomTools/README.mdx
deleted file mode 100644
index 1c8243951..000000000
--- a/fern/pages/sdk/typescript/CustomTools/README.mdx
+++ /dev/null
@@ -1,23 +0,0 @@
-[**@composio/core**](../README.mdx)
-
-***
-
-[@composio/core](../README.mdx) / CustomTools
-
-# CustomTools
-
-## Fileoverview
-
-Custom tools class for Composio SDK, used to manage custom tools created by users.
-
-## Author
-
-Musthaq Ahamad <[email protected]>
-
-## Date
-
-2025-05-05
-
-## Classes
-
-- [CustomTools](classes/CustomTools.mdx)
diff --git a/fern/pages/sdk/typescript/CustomTools/classes/CustomTools.mdx b/fern/pages/sdk/typescript/CustomTools/classes/CustomTools.mdx
deleted file mode 100644
index 4f4796f9b..000000000
--- a/fern/pages/sdk/typescript/CustomTools/classes/CustomTools.mdx
+++ /dev/null
@@ -1,183 +0,0 @@
-[**@composio/core**](../../README.mdx)
-
----
-
-[@composio/core](../../README.mdx) / [CustomTools](../README.mdx) / CustomTools
-
-# Class: CustomTools
-
-Defined in: [packages/core/src/models/CustomTools.ts:37](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/CustomTools.ts#L37)
-
-## Constructors
-
-### Constructor
-
-> **new CustomTools**(`client`): `CustomTools`
-
-Defined in: [packages/core/src/models/CustomTools.ts:41](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/CustomTools.ts#L41)
-
-#### Parameters
-
-##### client
-
-`Composio`
-
-#### Returns
-
-`CustomTools`
-
-## Methods
-
-### createTool()
-
-> **createTool**\<`T`\>(`toolOptions`): `Promise`\<\{ \}\>
-
-Defined in: [packages/core/src/models/CustomTools.ts:76](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/CustomTools.ts#L76)
-
-Create a custom tool and registers it in the registry.
-This is just an in memory registry and is not persisted.
-
-#### Type Parameters
-
-##### T
-
-`T` _extends_ `CustomToolInputParameter`
-
-#### Parameters
-
-##### toolOptions
-
-`CustomToolOptions`\<`T`\>
-
-CustomToolOptions
-
-#### Returns
-
-`Promise`\<\{ \}\>
-
-The tool created
-
-#### Example
-
-```typescript
-// Create a custom tool with input parameters
-const customTool = await composio.customTools.createTool({
- name: 'My Custom Tool',
- description: 'A tool that performs a custom operation',
- slug: 'MY_CUSTOM_TOOL',
- inputParams: z.object({
- query: z.string().describe('The search query'),
- limit: z.number().optional().describe('Maximum number of results'),
- }),
- execute: async (input, connectionConfig, executeToolRequest) => {
- // Custom implementation logic
- return {
- data: { results: ['result1', 'result2'] },
- };
- },
-});
-```
-
----
-
-### executeCustomTool()
-
-> **executeCustomTool**(`slug`, `body`): `Promise`\<\{ \}\>
-
-Defined in: [packages/core/src/models/CustomTools.ts:267](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/CustomTools.ts#L267)
-
-Execute a custom tool
-
-#### Parameters
-
-##### slug
-
-`string`
-
-The slug of the tool to execute
-
-##### body
-
-#### Returns
-
-`Promise`\<\{ \}\>
-
-The response from the tool
-
-#### Description
-
-If a toolkit is used, the connected account id is used to execute the tool.
-If a connected account id is provided, it is used to execute the tool.
-If a connected account id is not provided, the first connected account for the toolkit is used.
-
----
-
-### getCustomToolBySlug()
-
-> **getCustomToolBySlug**(`slug`): `Promise`\<\{ \}\>
-
-Defined in: [packages/core/src/models/CustomTools.ts:169](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/CustomTools.ts#L169)
-
-Get a custom tool by slug from the registry.
-
-#### Parameters
-
-##### slug
-
-`string`
-
-The slug of the tool to get
-
-#### Returns
-
-`Promise`\<\{ \}\>
-
-The tool
-
-#### Example
-
-```typescript
-// Get a specific custom tool by its slug
-const myTool = await composio.customTools.getCustomToolBySlug('MY_CUSTOM_TOOL');
-if (myTool) {
- console.log(`Found tool: ${myTool.name}`);
-} else {
- console.log('Tool not found');
-}
-```
-
----
-
-### getCustomTools()
-
-> **getCustomTools**(`__namedParameters`): `Promise`\<`ToolList`\>
-
-Defined in: [packages/core/src/models/CustomTools.ts:134](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/CustomTools.ts#L134)
-
-Get all the custom tools from the registry.
-
-#### Parameters
-
-##### \_\_namedParameters
-
-###### toolSlugs?
-
-`string`[]
-
-#### Returns
-
-`Promise`\<`ToolList`\>
-
-The list of tools
-
-#### Example
-
-```typescript
-// Get all custom tools
-const allTools = await composio.customTools.getCustomTools({});
-
-// Get specific custom tools by slug
-const specificTools = await composio.customTools.getCustomTools({
- toolSlugs: ['MY_CUSTOM_TOOL', 'ANOTHER_CUSTOM_TOOL'],
-});
-```
diff --git a/fern/pages/sdk/typescript/README.mdx b/fern/pages/sdk/typescript/README.mdx
deleted file mode 100644
index 7279a0cd7..000000000
--- a/fern/pages/sdk/typescript/README.mdx
+++ /dev/null
@@ -1,20 +0,0 @@
-**@composio/core**
-
-***
-
-# @composio/core
-
-## Modules
-
-- [AuthConfigs](AuthConfigs/README.mdx)
-- [composio](composio/README.mdx)
-- [ConnectedAccounts](ConnectedAccounts/README.mdx)
-- [ConnectionRequest](ConnectionRequest/README.mdx)
-- [CustomTools](CustomTools/README.mdx)
-- [models/Session](models/Session/README.mdx)
-- [models/Toolkits](models/Toolkits/README.mdx)
-- [models/Tools](models/Tools/README.mdx)
-- [models/Triggers](models/Triggers/README.mdx)
-- [provider/BaseProvider](provider/BaseProvider/README.mdx)
-- [provider/ComposioProvider](provider/ComposioProvider/README.mdx)
-- [provider/OpenAIProvider](provider/OpenAIProvider/README.mdx)
diff --git a/fern/pages/sdk/typescript/composio/README.mdx b/fern/pages/sdk/typescript/composio/README.mdx
deleted file mode 100644
index affaeb005..000000000
--- a/fern/pages/sdk/typescript/composio/README.mdx
+++ /dev/null
@@ -1,15 +0,0 @@
-[**@composio/core**](../README.mdx)
-
-***
-
-[@composio/core](../README.mdx) / composio
-
-# composio
-
-## Classes
-
-- [Composio](classes/Composio.mdx)
-
-## Type Aliases
-
-- [ComposioConfig](type-aliases/ComposioConfig.mdx)
diff --git a/fern/pages/sdk/typescript/composio/classes/Composio.mdx b/fern/pages/sdk/typescript/composio/classes/Composio.mdx
deleted file mode 100644
index 7b868cfe2..000000000
--- a/fern/pages/sdk/typescript/composio/classes/Composio.mdx
+++ /dev/null
@@ -1,180 +0,0 @@
-[**@composio/core**](../../README.mdx)
-
-***
-
-[@composio/core](../../README.mdx) / [composio](../README.mdx) / Composio
-
-# Class: Composio\<TProvider\>
-
-Defined in: [packages/core/src/composio.ts:48](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/composio.ts#L48)
-
-This is the core class for Composio.
-It is used to initialize the Composio SDK and provide a global configuration.
-
-## Type Parameters
-
-### TProvider
-
-`TProvider` *extends* [`BaseComposioProvider`](../../provider/BaseProvider/type-aliases/BaseComposioProvider.mdx)\<`unknown`, `unknown`\> = [`OpenAIProvider`](../../provider/OpenAIProvider/classes/OpenAIProvider.mdx)
-
-## Constructors
-
-### Constructor
-
-> **new Composio**\<`TProvider`\>(`config?`): `Composio`\<`TProvider`\>
-
-Defined in: [packages/core/src/composio.ts:105](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/composio.ts#L105)
-
-Creates a new instance of the Composio SDK.
-
-The constructor initializes the SDK with the provided configuration options,
-sets up the API client, and initializes all core models (tools, toolkits, etc.).
-
-#### Parameters
-
-##### config?
-
-[`ComposioConfig`](../type-aliases/ComposioConfig.mdx)\<`TProvider`\>
-
-Configuration options for the Composio SDK
-
-#### Returns
-
-`Composio`\<`TProvider`\>
-
-#### Example
-
-```typescript
-// Initialize with default configuration
-const composio = new Composio();
-
-// Initialize with custom API key and base URL
-const composio = new Composio({
- apiKey: 'your-api-key',
- baseURL: 'https://api.composio.dev'
-});
-
-// Initialize with custom provider
-const composio = new Composio({
- apiKey: 'your-api-key',
- provider: new CustomProvider()
-});
-```
-
-## Properties
-
-### authConfigs
-
-> **authConfigs**: [`AuthConfigs`](../../AuthConfigs/classes/AuthConfigs.mdx)
-
-Defined in: [packages/core/src/composio.ts:69](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/composio.ts#L69)
-
-***
-
-### connectedAccounts
-
-> **connectedAccounts**: [`ConnectedAccounts`](../../ConnectedAccounts/classes/ConnectedAccounts.mdx)
-
-Defined in: [packages/core/src/composio.ts:71](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/composio.ts#L71)
-
-***
-
-### provider
-
-> **provider**: `TProvider`
-
-Defined in: [packages/core/src/composio.ts:67](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/composio.ts#L67)
-
-***
-
-### toolkits
-
-> **toolkits**: [`Toolkits`](../../models/Toolkits/classes/Toolkits.mdx)
-
-Defined in: [packages/core/src/composio.ts:65](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/composio.ts#L65)
-
-***
-
-### tools
-
-> **tools**: [`Tools`](../../models/Tools/classes/Tools.mdx)\<`unknown`, `unknown`, `TProvider`\>
-
-Defined in: [packages/core/src/composio.ts:64](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/composio.ts#L64)
-
-Core models for Composio.
-
-***
-
-### triggers
-
-> **triggers**: [`Triggers`](../../models/Triggers/classes/Triggers.mdx)
-
-Defined in: [packages/core/src/composio.ts:66](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/composio.ts#L66)
-
-## Methods
-
-### createSession()
-
-> **createSession**(`options?`): `Composio`\<`TProvider`\>
-
-Defined in: [packages/core/src/composio.ts:223](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/composio.ts#L223)
-
-Creates a new instance of the Composio SDK with custom request options while preserving the existing configuration.
-This method is particularly useful when you need to:
-- Add custom headers for specific requests
-- Track request contexts with unique identifiers
-- Override default request behavior for a subset of operations
-
-The new instance inherits all configuration from the parent instance (apiKey, baseURL, provider, etc.)
-but allows you to specify custom request options that will be used for all API calls made through this session.
-
-#### Parameters
-
-##### options?
-
-###### headers?
-
-`ComposioRequestHeaders`
-
-#### Returns
-
-`Composio`\<`TProvider`\>
-
-A new Composio instance with the custom request options applied.
-
-#### Example
-
-```typescript
-// Create a base Composio instance
-const composio = new Composio({
- apiKey: 'your-api-key'
-});
-
-// Create a session with request tracking headers
-const composioWithCustomHeaders = composio.createSession({
- headers: {
- 'x-request-id': '1234567890',
- 'x-correlation-id': 'session-abc-123',
- 'x-custom-header': 'custom-value'
- }
-});
-
-// Use the session for making API calls with the custom headers
-await composioWithCustomHeaders.tools.list();
-```
-
-***
-
-### getClient()
-
-> **getClient**(): `Composio`
-
-Defined in: [packages/core/src/composio.ts:182](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/composio.ts#L182)
-
-Get the Composio SDK client.
-
-#### Returns
-
-`Composio`
-
-The Composio API client.
diff --git a/fern/pages/sdk/typescript/composio/type-aliases/ComposioConfig.mdx b/fern/pages/sdk/typescript/composio/type-aliases/ComposioConfig.mdx
deleted file mode 100644
index 306d5e3ef..000000000
--- a/fern/pages/sdk/typescript/composio/type-aliases/ComposioConfig.mdx
+++ /dev/null
@@ -1,86 +0,0 @@
-[**@composio/core**](../../README.mdx)
-
-***
-
-[@composio/core](../../README.mdx) / [composio](../README.mdx) / ComposioConfig
-
-# Type Alias: ComposioConfig\<TProvider\>
-
-> **ComposioConfig**\<`TProvider`\> = `object`
-
-Defined in: [packages/core/src/composio.ts:20](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/composio.ts#L20)
-
-## Type Parameters
-
-### TProvider
-
-`TProvider` *extends* [`BaseComposioProvider`](../../provider/BaseProvider/type-aliases/BaseComposioProvider.mdx)\<`unknown`, `unknown`\> = [`OpenAIProvider`](../../provider/OpenAIProvider/classes/OpenAIProvider.mdx)
-
-## Properties
-
-### allowTracing?
-
-> `optional` **allowTracing**: `boolean`
-
-Defined in: [packages/core/src/composio.ts:26](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/composio.ts#L26)
-
-***
-
-### allowTracking?
-
-> `optional` **allowTracking**: `boolean`
-
-Defined in: [packages/core/src/composio.ts:25](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/composio.ts#L25)
-
-***
-
-### apiKey?
-
-> `optional` **apiKey**: `string` \| `null`
-
-Defined in: [packages/core/src/composio.ts:23](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/composio.ts#L23)
-
-***
-
-### baseURL?
-
-> `optional` **baseURL**: `string` \| `null`
-
-Defined in: [packages/core/src/composio.ts:24](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/composio.ts#L24)
-
-***
-
-### defaultHeaders?
-
-> `optional` **defaultHeaders**: `ComposioRequestHeaders`
-
-Defined in: [packages/core/src/composio.ts:41](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/composio.ts#L41)
-
-Request options to be passed to the Composio API client.
-This is useful for passing in a custom fetch implementation.
-
-#### Example
-
-```typescript
-const composio = new Composio({
- defaultHeaders: {
- 'x-request-id': '1234567890',
- },
-});
-```
-
-***
-
-### provider?
-
-> `optional` **provider**: `TProvider`
-
-Defined in: [packages/core/src/composio.ts:27](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/composio.ts#L27)
-
-***
-
-### telemetryTransport?
-
-> `optional` **telemetryTransport**: `BaseTelemetryTransport`
-
-Defined in: [packages/core/src/composio.ts:28](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/composio.ts#L28)
diff --git a/fern/pages/sdk/typescript/models/Session/README.mdx b/fern/pages/sdk/typescript/models/Session/README.mdx
deleted file mode 100644
index 361912daf..000000000
--- a/fern/pages/sdk/typescript/models/Session/README.mdx
+++ /dev/null
@@ -1,11 +0,0 @@
-[**@composio/core**](../../README.mdx)
-
-***
-
-[@composio/core](../../README.mdx) / models/Session
-
-# models/Session
-
-## Classes
-
-- [Session](classes/Session.mdx)
diff --git a/fern/pages/sdk/typescript/models/Session/classes/Session.mdx b/fern/pages/sdk/typescript/models/Session/classes/Session.mdx
deleted file mode 100644
index f74e20620..000000000
--- a/fern/pages/sdk/typescript/models/Session/classes/Session.mdx
+++ /dev/null
@@ -1,43 +0,0 @@
-[**@composio/core**](../../../README.mdx)
-
-***
-
-[@composio/core](../../../README.mdx) / [models/Session](../README.mdx) / Session
-
-# Class: Session
-
-Defined in: [packages/core/src/models/Session.ts:5](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/Session.ts#L5)
-
-## Constructors
-
-### Constructor
-
-> **new Session**(`client`): `Session`
-
-Defined in: [packages/core/src/models/Session.ts:8](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/Session.ts#L8)
-
-#### Parameters
-
-##### client
-
-`Composio`
-
-#### Returns
-
-`Session`
-
-## Methods
-
-### getInfo()
-
-> **getInfo**(): `Promise`\<`SessionRetrieveResponse`\>
-
-Defined in: [packages/core/src/models/Session.ts:17](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/Session.ts#L17)
-
-Get the active session info
-
-#### Returns
-
-`Promise`\<`SessionRetrieveResponse`\>
-
-Session info
diff --git a/fern/pages/sdk/typescript/models/Toolkits/README.mdx b/fern/pages/sdk/typescript/models/Toolkits/README.mdx
deleted file mode 100644
index a2f7ffa64..000000000
--- a/fern/pages/sdk/typescript/models/Toolkits/README.mdx
+++ /dev/null
@@ -1,11 +0,0 @@
-[**@composio/core**](../../README.mdx)
-
-***
-
-[@composio/core](../../README.mdx) / models/Toolkits
-
-# models/Toolkits
-
-## Classes
-
-- [Toolkits](classes/Toolkits.mdx)
diff --git a/fern/pages/sdk/typescript/models/Toolkits/classes/Toolkits.mdx b/fern/pages/sdk/typescript/models/Toolkits/classes/Toolkits.mdx
deleted file mode 100644
index 86acee8fb..000000000
--- a/fern/pages/sdk/typescript/models/Toolkits/classes/Toolkits.mdx
+++ /dev/null
@@ -1,186 +0,0 @@
-[**@composio/core**](../../../README.mdx)
-
-***
-
-[@composio/core](../../../README.mdx) / [models/Toolkits](../README.mdx) / Toolkits
-
-# Class: Toolkits
-
-Defined in: [packages/core/src/models/Toolkits.ts:27](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/Toolkits.ts#L27)
-
-Toolkits class
-
-Toolkits are a collection of tools that can be used to perform various tasks.
-This is similar/replacement of `apps` in the Composio API.
-
-## Constructors
-
-### Constructor
-
-> **new Toolkits**(`client`): `Toolkits`
-
-Defined in: [packages/core/src/models/Toolkits.ts:30](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/Toolkits.ts#L30)
-
-#### Parameters
-
-##### client
-
-`Composio`
-
-#### Returns
-
-`Toolkits`
-
-## Methods
-
-### authorize()
-
-> **authorize**(`userId`, `toolkitSlug`): `Promise`\<[`ConnectionRequest`](../../../ConnectionRequest/classes/ConnectionRequest.mdx)\>
-
-Defined in: [packages/core/src/models/Toolkits.ts:255](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/Toolkits.ts#L255)
-
-Authorizes a user to use a toolkit.
-This method will create an auth config if one doesn't exist and initiate a connection request.
-
-#### Parameters
-
-##### userId
-
-`string`
-
-The user id of the user to authorize
-
-##### toolkitSlug
-
-`string`
-
-The slug of the toolkit to authorize
-
-#### Returns
-
-`Promise`\<[`ConnectionRequest`](../../../ConnectionRequest/classes/ConnectionRequest.mdx)\>
-
-The connection request object
-
-#### Example
-
-```typescript
-const connectionRequest = await composio.toolkits.authorize(userId, 'github');
-```
-
-***
-
-### get()
-
-Implementation method that handles both overloads for retrieving toolkits.
-
-#### Param
-
-Either a toolkit slug or query parameters
-
-#### Call Signature
-
-> **get**(`slug`): `Promise`\<\{ \}\>
-
-Defined in: [packages/core/src/models/Toolkits.ts:171](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/Toolkits.ts#L171)
-
-Retrieves a specific toolkit by its slug identifier.
-
-##### Parameters
-
-###### slug
-
-`string`
-
-The unique slug identifier of the toolkit to retrieve
-
-##### Returns
-
-`Promise`\<\{ \}\>
-
-The toolkit or list of toolkits
-
-##### Param
-
-Either a toolkit slug or query parameters
-
-##### Throws
-
-If no toolkit with the given slug exists
-
-##### Example
-
-```typescript
-// Get a specific toolkit
-const githubToolkit = await composio.toolkits.get('github');
-console.log(githubToolkit.name); // GitHub
-console.log(githubToolkit.authConfigDetails); // Authentication configuration details
-```
-
-#### Call Signature
-
-> **get**(`query`): `Promise`\<\{ \}\>
-
-Defined in: [packages/core/src/models/Toolkits.ts:195](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/Toolkits.ts#L195)
-
-Retrieves a list of toolkits based on the provided query parameters.
-
-##### Parameters
-
-###### query
-
-The query parameters to filter toolkits
-
-##### Returns
-
-`Promise`\<\{ \}\>
-
-The toolkit or list of toolkits
-
-##### Param
-
-Either a toolkit slug or query parameters
-
-##### Example
-
-```typescript
-// Get all toolkits
-const allToolkits = await composio.toolkits.get({});
-
-// Get toolkits by category
-const devToolkits = await composio.toolkits.get({
- category: 'developer-tools'
-});
-
-// Get local toolkits
-const localToolkits = await composio.toolkits.get({
- isLocal: true
-});
-```
-
-***
-
-### listCategories()
-
-> **listCategories**(): `Promise`\<\{ \}\>
-
-Defined in: [packages/core/src/models/Toolkits.ts:227](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/Toolkits.ts#L227)
-
-Retrieves all toolkit categories available in the Composio SDK.
-
-This method fetches the complete list of categories from the Composio API
-and transforms the response to use camelCase property naming.
-
-#### Returns
-
-`Promise`\<\{ \}\>
-
-The list of toolkit categories
-
-#### Example
-
-```typescript
-// Get all toolkit categories
-const categories = await composio.toolkits.listCategories();
-console.log(categories.items); // Array of category objects
-```
diff --git a/fern/pages/sdk/typescript/models/Tools/README.mdx b/fern/pages/sdk/typescript/models/Tools/README.mdx
deleted file mode 100644
index ef9d7b235..000000000
--- a/fern/pages/sdk/typescript/models/Tools/README.mdx
+++ /dev/null
@@ -1,11 +0,0 @@
-[**@composio/core**](../../README.mdx)
-
-***
-
-[@composio/core](../../README.mdx) / models/Tools
-
-# models/Tools
-
-## Classes
-
-- [Tools](classes/Tools.mdx)
diff --git a/fern/pages/sdk/typescript/models/Tools/classes/Tools.mdx b/fern/pages/sdk/typescript/models/Tools/classes/Tools.mdx
deleted file mode 100644
index a51c2f122..000000000
--- a/fern/pages/sdk/typescript/models/Tools/classes/Tools.mdx
+++ /dev/null
@@ -1,557 +0,0 @@
-[**@composio/core**](../../../README.mdx)
-
----
-
-[@composio/core](../../../README.mdx) / [models/Tools](../README.mdx) / Tools
-
-# Class: Tools\<TToolCollection, TTool, TProvider\>
-
-Defined in: [packages/core/src/models/Tools.ts:48](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/Tools.ts#L48)
-
-This class is used to manage tools in the Composio SDK.
-It provides methods to list, get, and execute tools.
-
-## Type Parameters
-
-### TToolCollection
-
-`TToolCollection`
-
-### TTool
-
-`TTool`
-
-### TProvider
-
-`TProvider` _extends_ [`BaseComposioProvider`](../../../provider/BaseProvider/type-aliases/BaseComposioProvider.mdx)\<`TToolCollection`, `TTool`\>
-
-## Constructors
-
-### Constructor
-
-> **new Tools**\<`TToolCollection`, `TTool`, `TProvider`\>(`client`, `provider`): `Tools`\<`TToolCollection`, `TTool`, `TProvider`\>
-
-Defined in: [packages/core/src/models/Tools.ts:57](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/Tools.ts#L57)
-
-#### Parameters
-
-##### client
-
-`Composio`
-
-##### provider
-
-`TProvider`
-
-#### Returns
-
-`Tools`\<`TToolCollection`, `TTool`, `TProvider`\>
-
-## Methods
-
-### createCustomTool()
-
-> **createCustomTool**\<`T`\>(`body`): `Promise`\<\{ \}\>
-
-Defined in: [packages/core/src/models/Tools.ts:797](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/Tools.ts#L797)
-
-Creates a custom tool that can be used within the Composio SDK.
-
-Custom tools allow you to extend the functionality of Composio with your own implementations
-while keeping a consistent interface for both built-in and custom tools.
-
-#### Type Parameters
-
-##### T
-
-`T` _extends_ `CustomToolInputParameter`
-
-#### Parameters
-
-##### body
-
-`CustomToolOptions`\<`T`\>
-
-The configuration for the custom tool
-
-#### Returns
-
-`Promise`\<\{ \}\>
-
-The created custom tool
-
-#### Examples
-
-```typescript
-// creating a custom tool with a toolkit
-await composio.tools.createCustomTool({
- name: 'My Custom Tool',
- description: 'A custom tool that does something specific',
- slug: 'MY_CUSTOM_TOOL',
- userId: 'default',
- connectedAccountId: '123',
- toolkitSlug: 'github',
- inputParameters: z.object({
- param1: z.string().describe('First parameter'),
- }),
- execute: async (input, connectionConfig, executeToolRequest) => {
- // Custom logic here
- return { data: { result: 'Success!' } };
- },
-});
-```
-
-````typescript
-// creating a custom tool without a toolkit
-await composio.tools.createCustomTool({
- name: 'My Custom Tool',
- description: 'A custom tool that does something specific',
- slug: 'MY_CUSTOM_TOOL',
- inputParameters: z.object({
- param1: z.string().describe('First parameter'),
- }),
- execute: async (input) => {
- // Custom logic here
- return { data: { result: 'Success!' } };
- }
-});
-
-***
-
-### execute()
-
-> **execute**(`slug`, `body`, `modifiers?`): `Promise`\<\{ \}\>
-
-Defined in: [packages/core/src/models/Tools.ts:622](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/Tools.ts#L622)
-
-Executes a given tool with the provided parameters.
-
-This method calls the Composio API or a custom tool handler to execute the tool and returns the response.
-It automatically determines whether to use a custom tool or a Composio API tool based on the slug.
-
-#### Parameters
-
-##### slug
-
-`string`
-
-The slug/ID of the tool to be executed
-
-##### body
-
-The parameters to be passed to the tool
-
-##### modifiers?
-
-`ExecuteToolModifiers`
-
-Optional modifiers to transform the request or response
-
-#### Returns
-
-`Promise`\<\{ \}\>
-
-- The response from the tool execution
-
-#### Throws
-
-If the CustomTools instance is not initialized
-
-#### Throws
-
-If the tool with the given slug is not found
-
-#### Throws
-
-If there is an error during tool execution
-
-#### Example
-
-```typescript
-// Execute a Composio API tool
-const result = await composio.tools.execute('HACKERNEWS_GET_USER', {
- userId: 'default',
- arguments: { userId: 'pg' }
-});
-
-// Execute with modifiers
-const result = await composio.tools.execute('GITHUB_GET_ISSUES', {
- userId: 'default',
- arguments: { owner: 'composio', repo: 'sdk' }
-}, {
- beforeExecute: (toolSlug, toolkitSlug, params) => {
- // Modify params before execution
- return params;
- },
- afterExecute: (toolSlug, toolkitSlug, result) => {
- // Transform result after execution
- return result;
- }
-});
-````
-
----
-
-### get()
-
-Get a tool or list of tools based on the provided arguments.
-This is an implementation method that handles both overloads.
-
-#### Param
-
-The user id to get the tool(s) for
-
-#### Param
-
-Either a slug string or filters object
-
-#### Param
-
-Optional provider options
-
-#### Call Signature
-
-> **get**\<`T`\>(`userId`, `filters`, `options?`): `Promise`\<`ReturnType`\<`T`\[`"wrapTools"`\]\>\>
-
-Defined in: [packages/core/src/models/Tools.ts:401](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/Tools.ts#L401)
-
-Get a list of tools from Composio based on filters.
-This method fetches the tools from the Composio API and wraps them using the provider.
-
-##### Type Parameters
-
-###### T
-
-`T` _extends_ [`BaseComposioProvider`](../../../provider/BaseProvider/type-aliases/BaseComposioProvider.mdx)\<`TToolCollection`, `TTool`\>
-
-##### Parameters
-
-###### userId
-
-`string`
-
-The user id to get the tools for
-
-###### filters
-
-`ToolListParams`
-
-The filters to apply when fetching tools
-
-###### options?
-
-`ProviderOptions`\<`TProvider`\>
-
-Optional provider options including modifiers
-
-##### Returns
-
-`Promise`\<`ReturnType`\<`T`\[`"wrapTools"`\]\>\>
-
-The tool collection
-
-##### Param
-
-The user id to get the tool(s) for
-
-##### Param
-
-Either a slug string or filters object
-
-##### Param
-
-Optional provider options
-
-##### Example
-
-```typescript
-// Get tools from the GitHub toolkit
-const tools = await composio.tools.get('default', {
- toolkits: ['github'],
- limit: 10,
-});
-
-// Get tools with search
-const tools = await composio.tools.get('default', {
- search: 'user',
- important: true,
-});
-```
-
-#### Call Signature
-
-> **get**\<`T`\>(`userId`, `slug`, `options?`): `Promise`\<`ReturnType`\<`T`\[`"wrapTools"`\]\>\>
-
-Defined in: [packages/core/src/models/Tools.ts:430](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/Tools.ts#L430)
-
-Get a specific tool by its slug.
-This method fetches the tool from the Composio API and wraps it using the provider.
-
-##### Type Parameters
-
-###### T
-
-`T` _extends_ [`BaseComposioProvider`](../../../provider/BaseProvider/type-aliases/BaseComposioProvider.mdx)\<`TToolCollection`, `TTool`\>
-
-##### Parameters
-
-###### userId
-
-`string`
-
-The user id to get the tool for
-
-###### slug
-
-`string`
-
-The slug of the tool to fetch
-
-###### options?
-
-`ProviderOptions`\<`TProvider`\>
-
-Optional provider options including modifiers
-
-##### Returns
-
-`Promise`\<`ReturnType`\<`T`\[`"wrapTools"`\]\>\>
-
-The tool collection
-
-##### Param
-
-The user id to get the tool(s) for
-
-##### Param
-
-Either a slug string or filters object
-
-##### Param
-
-Optional provider options
-
-##### Example
-
-```typescript
-// Get a specific tool by slug
-const hackerNewsUserTool = await composio.tools.get('default', 'HACKERNEWS_GET_USER');
-
-// Get a tool with schema modifications
-const tool = await composio.tools.get('default', 'GITHUB_GET_REPOS', {
- modifySchema: (toolSlug, toolkitSlug, schema) => {
- // Customize the tool schema
- return { ...schema, description: 'Custom description' };
- },
-});
-```
-
----
-
-### getInput()
-
-> **getInput**(`slug`, `body`): `Promise`\<`ToolGetInputResponse`\>
-
-Defined in: [packages/core/src/models/Tools.ts:693](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/Tools.ts#L693)
-
-Fetches the input parameters for a given tool.
-
-This method is used to get the input parameters for a tool before executing it.
-
-#### Parameters
-
-##### slug
-
-`string`
-
-The ID of the tool to find input for
-
-##### body
-
-`ToolGetInputParams`
-
-The parameters to be passed to the tool
-
-#### Returns
-
-`Promise`\<`ToolGetInputResponse`\>
-
-The input parameters schema for the specified tool
-
-#### Example
-
-```typescript
-// Get input parameters for a specific tool
-const inputParams = await composio.tools.getInput('GITHUB_CREATE_ISSUE', {
- userId: 'default',
-});
-console.log(inputParams.schema);
-```
-
----
-
-### getRawComposioToolBySlug()
-
-> **getRawComposioToolBySlug**(`userId`, `slug`, `modifier?`): `Promise`\<\{ \}\>
-
-Defined in: [packages/core/src/models/Tools.ts:341](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/Tools.ts#L341)
-
-Retrieves a tool by its Slug.
-This method is used to get the raw tools from the composio API.
-
-#### Parameters
-
-##### userId
-
-`string`
-
-##### slug
-
-`string`
-
-The ID of the tool to be retrieved
-
-##### modifier?
-
-`TransformToolSchemaModifier`
-
-#### Returns
-
-`Promise`\<\{ \}\>
-
-The tool
-
-#### Example
-
-```ts
-const tool = await composio.tools.getRawComposioToolBySlug('default', 'github');
-```
-
----
-
-### getRawComposioTools()
-
-> **getRawComposioTools**(`userId`, `query?`, `modifier?`): `Promise`\<`ToolList`\>
-
-Defined in: [packages/core/src/models/Tools.ts:252](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/Tools.ts#L252)
-
-Lists all tools available in the Composio SDK including custom tools.
-
-This method fetches tools from the Composio API in raw format and combines them with
-any registered custom tools. The response can be filtered and modified as needed.
-
-#### Parameters
-
-##### userId
-
-`string`
-
-The user ID for whom to fetch the tools
-
-##### query?
-
-`ToolListParams`
-
-Optional query parameters to filter the tools
-
-##### modifier?
-
-`TransformToolSchemaModifier`
-
-Optional function to transform tool schemas
-
-#### Returns
-
-`Promise`\<`ToolList`\>
-
-List of tools matching the query criteria
-
-#### Example
-
-```typescript
-// Get all tools
-const tools = await composio.tools.getRawComposioTools('default');
-
-// Get tools with filters
-const githubTools = await composio.tools.getRawComposioTools('default', {
- toolkits: ['github'],
- important: true,
-});
-
-// Get tools with schema transformation
-const tools = await composio.tools.getRawComposioTools(
- 'default',
- {},
- (toolSlug, toolkitSlug, tool) => {
- // Add custom properties to tool schema
- return { ...tool, customProperty: 'value' };
- }
-);
-```
-
----
-
-### getToolsEnum()
-
-> **getToolsEnum**(): `Promise`\<`string`\>
-
-Defined in: [packages/core/src/models/Tools.ts:671](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/Tools.ts#L671)
-
-Fetches the list of all available tools in the Composio SDK.
-
-This method is mostly used by the CLI to get the list of tools.
-No filtering is done on the tools, the list is cached in the backend, no further optimization is required.
-
-#### Returns
-
-`Promise`\<`string`\>
-
-The complete list of all available tools with their metadata
-
-#### Example
-
-```typescript
-// Get all available tools as an enum
-const toolsEnum = await composio.tools.getToolsEnum();
-console.log(toolsEnum.items);
-```
-
----
-
-### proxyExecute()
-
-> **proxyExecute**(`body`): `Promise`\<`ToolProxyResponse`\>
-
-Defined in: [packages/core/src/models/Tools.ts:720](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/Tools.ts#L720)
-
-Proxies a custom request to a toolkit/integration.
-
-This method allows sending custom requests to a specific toolkit or integration
-when you need more flexibility than the standard tool execution methods provide.
-
-#### Parameters
-
-##### body
-
-The parameters for the proxy request including toolkit slug and custom data
-
-#### Returns
-
-`Promise`\<`ToolProxyResponse`\>
-
-The response from the proxied request
-
-#### Example
-
-```typescript
-// Send a custom request to a toolkit
-const response = await composio.tools.proxyExecute({
- toolkitSlug: 'github',
- userId: 'default',
- data: {
- endpoint: '/repos/owner/repo/issues',
- method: 'GET',
- },
-});
-console.log(response.data);
-```
diff --git a/fern/pages/sdk/typescript/models/Triggers/README.mdx b/fern/pages/sdk/typescript/models/Triggers/README.mdx
deleted file mode 100644
index 8da4ecad4..000000000
--- a/fern/pages/sdk/typescript/models/Triggers/README.mdx
+++ /dev/null
@@ -1,11 +0,0 @@
-[**@composio/core**](../../README.mdx)
-
-***
-
-[@composio/core](../../README.mdx) / models/Triggers
-
-# models/Triggers
-
-## Classes
-
-- [Triggers](classes/Triggers.mdx)
diff --git a/fern/pages/sdk/typescript/models/Triggers/classes/Triggers.mdx b/fern/pages/sdk/typescript/models/Triggers/classes/Triggers.mdx
deleted file mode 100644
index 91121781f..000000000
--- a/fern/pages/sdk/typescript/models/Triggers/classes/Triggers.mdx
+++ /dev/null
@@ -1,318 +0,0 @@
-[**@composio/core**](../../../README.mdx)
-
-***
-
-[@composio/core](../../../README.mdx) / [models/Triggers](../README.mdx) / Triggers
-
-# Class: Triggers
-
-Defined in: [packages/core/src/models/Triggers.ts:38](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/Triggers.ts#L38)
-
-Trigger (Instance) class
-/api/v3/trigger_instances
-
-## Constructors
-
-### Constructor
-
-> **new Triggers**(`client`): `Triggers`
-
-Defined in: [packages/core/src/models/Triggers.ts:42](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/Triggers.ts#L42)
-
-#### Parameters
-
-##### client
-
-`Composio`
-
-#### Returns
-
-`Triggers`
-
-## Methods
-
-### create()
-
-> **create**(`slug`, `body`): `Promise`\<\{ \}\>
-
-Defined in: [packages/core/src/models/Triggers.ts:142](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/Triggers.ts#L142)
-
-Create a new trigger instance
-
-#### Parameters
-
-##### slug
-
-`string`
-
-The slug of the trigger instance
-
-##### body
-
-The parameters to create the trigger instance
-
-#### Returns
-
-`Promise`\<\{ \}\>
-
-The created trigger instance
-
-***
-
-### delete()
-
-> **delete**(`triggerId`): `Promise`\<\{ \}\>
-
-Defined in: [packages/core/src/models/Triggers.ts:191](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/Triggers.ts#L191)
-
-Delete a trigger instance
-
-#### Parameters
-
-##### triggerId
-
-`string`
-
-The slug of the trigger instance
-
-#### Returns
-
-`Promise`\<\{ \}\>
-
-***
-
-### disable()
-
-> **disable**(`triggerId`): `Promise`\<`ManageUpdateResponse`\>
-
-Defined in: [packages/core/src/models/Triggers.ts:212](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/Triggers.ts#L212)
-
-Disable a trigger instance
-
-#### Parameters
-
-##### triggerId
-
-`string`
-
-The id of the trigger instance
-
-#### Returns
-
-`Promise`\<`ManageUpdateResponse`\>
-
-The updated trigger instance
-
-***
-
-### enable()
-
-> **enable**(`triggerId`): `Promise`\<`ManageUpdateResponse`\>
-
-Defined in: [packages/core/src/models/Triggers.ts:224](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/Triggers.ts#L224)
-
-Enable a trigger instance
-
-#### Parameters
-
-##### triggerId
-
-`string`
-
-The id of the trigger instance
-
-#### Returns
-
-`Promise`\<`ManageUpdateResponse`\>
-
-The updated trigger instance
-
-***
-
-### getType()
-
-> **getType**(`slug`): `Promise`\<`TriggersTypeRetrieveResponse`\>
-
-Defined in: [packages/core/src/models/Triggers.ts:251](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/Triggers.ts#L251)
-
-Retrieve a trigger type by its slug
-
-#### Parameters
-
-##### slug
-
-`string`
-
-The slug of the trigger type
-
-#### Returns
-
-`Promise`\<`TriggersTypeRetrieveResponse`\>
-
-The trigger type object
-
-***
-
-### listActive()
-
-> **listActive**(`query?`): `Promise`\<\{ \}\>
-
-Defined in: [packages/core/src/models/Triggers.ts:93](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/Triggers.ts#L93)
-
-Fetch list of all the active triggers
-
-#### Parameters
-
-##### query?
-
-The query parameters to filter the trigger instances
-
-#### Returns
-
-`Promise`\<\{ \}\>
-
-List of trigger instances
-
-#### Throws
-
-If the parameters are invalid
-
-#### Throws
-
-If the client is not authenticated
-
-#### Example
-
-```ts
-const triggers = await triggers.listActive({
- authConfigIds: ['123'],
- connectedAccountIds: ['456'],
-});
-```
-
-***
-
-### listEnum()
-
-> **listEnum**(): `Promise`\<`string`\>
-
-Defined in: [packages/core/src/models/Triggers.ts:262](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/Triggers.ts#L262)
-
-Fetches the list of all the available trigger enums
-
-This method is used by the CLI where filters are not required.
-
-#### Returns
-
-`Promise`\<`string`\>
-
-***
-
-### listTypes()
-
-> **listTypes**(`query?`): `Promise`\<`TriggersTypeListResponse`\>
-
-Defined in: [packages/core/src/models/Triggers.ts:240](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/Triggers.ts#L240)
-
-List all the trigger types
-
-#### Parameters
-
-##### query?
-
-`TriggersTypeListParams`
-
-The query parameters to filter the trigger types
-
-#### Returns
-
-`Promise`\<`TriggersTypeListResponse`\>
-
-The list of trigger types
-
-***
-
-### subscribe()
-
-> **subscribe**(`fn`, `filters`): `Promise`\<`void`\>
-
-Defined in: [packages/core/src/models/Triggers.ts:280](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/Triggers.ts#L280)
-
-Subscribe to all the triggers
-
-#### Parameters
-
-##### fn
-
-(`_data`) => `void`
-
-The function to call when a trigger is received
-
-##### filters
-
-The filters to apply to the triggers
-
-#### Returns
-
-`Promise`\<`void`\>
-
-#### Example
-
-```ts
-
-triggers.subscribe((data) => {
- console.log(data);
-}, );
-```
-
-***
-
-### unsubscribe()
-
-> **unsubscribe**(): `Promise`\<`void`\>
-
-Defined in: [packages/core/src/models/Triggers.ts:441](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/Triggers.ts#L441)
-
-Unsubscribe from all the triggers
-
-#### Returns
-
-`Promise`\<`void`\>
-
-#### Example
-
-```ts
-composio.trigger.subscribe((data) => {
- console.log(data);
-});
-
-await triggers.unsubscribe();
-```
-
-***
-
-### update()
-
-> **update**(`triggerId`, `body`): `Promise`\<\{ \}\>
-
-Defined in: [packages/core/src/models/Triggers.ts:178](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/models/Triggers.ts#L178)
-
-Update an existing trigger instance
-
-#### Parameters
-
-##### triggerId
-
-`string`
-
-The Id of the trigger instance
-
-##### body
-
-The parameters to update the trigger instance
-
-#### Returns
-
-`Promise`\<\{ \}\>
-
-The updated trigger instance response
diff --git a/fern/pages/sdk/typescript/provider/BaseProvider/README.mdx b/fern/pages/sdk/typescript/provider/BaseProvider/README.mdx
deleted file mode 100644
index 0b960b73d..000000000
--- a/fern/pages/sdk/typescript/provider/BaseProvider/README.mdx
+++ /dev/null
@@ -1,16 +0,0 @@
-[**@composio/core**](../../README.mdx)
-
-***
-
-[@composio/core](../../README.mdx) / provider/BaseProvider
-
-# provider/BaseProvider
-
-## Classes
-
-- [BaseAgenticProvider](classes/BaseAgenticProvider.mdx)
-- [BaseNonAgenticProvider](classes/BaseNonAgenticProvider.mdx)
-
-## Type Aliases
-
-- [BaseComposioProvider](type-aliases/BaseComposioProvider.mdx)
diff --git a/fern/pages/sdk/typescript/provider/BaseProvider/classes/BaseAgenticProvider.mdx b/fern/pages/sdk/typescript/provider/BaseProvider/classes/BaseAgenticProvider.mdx
deleted file mode 100644
index 293139718..000000000
--- a/fern/pages/sdk/typescript/provider/BaseProvider/classes/BaseAgenticProvider.mdx
+++ /dev/null
@@ -1,193 +0,0 @@
-[**@composio/core**](../../../README.mdx)
-
-***
-
-[@composio/core](../../../README.mdx) / [provider/BaseProvider](../README.mdx) / BaseAgenticProvider
-
-# Class: `abstract` BaseAgenticProvider\<TToolCollection, TTool\>
-
-Defined in: [packages/core/src/provider/BaseProvider.ts:88](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/provider/BaseProvider.ts#L88)
-
-Base class for all agentic toolsets.
-This class is not meant to be used directly, but rather to be extended by concrete provider implementations.
-
-## Extends
-
-- `BaseProvider`
-
-## Type Parameters
-
-### TToolCollection
-
-`TToolCollection`
-
-### TTool
-
-`TTool`
-
-## Constructors
-
-### Constructor
-
-> **new BaseAgenticProvider**\<`TToolCollection`, `TTool`\>(): `BaseAgenticProvider`\<`TToolCollection`, `TTool`\>
-
-#### Returns
-
-`BaseAgenticProvider`\<`TToolCollection`, `TTool`\>
-
-#### Inherited from
-
-`BaseProvider.constructor`
-
-## Properties
-
-### \_isAgentic
-
-> `readonly` **\_isAgentic**: `true` = `true`
-
-Defined in: [packages/core/src/provider/BaseProvider.ts:89](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/provider/BaseProvider.ts#L89)
-
-**`Internal`**
-
-Whether the provider is agentic.
-This is set automatically set by the core SDK implementation for different provider types.
-
-#### Overrides
-
-`BaseProvider._isAgentic`
-
-***
-
-### name
-
-> `abstract` `readonly` **name**: `string`
-
-Defined in: [packages/core/src/provider/BaseProvider.ts:17](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/provider/BaseProvider.ts#L17)
-
-The name of the provider.
-Used to identify the provider in the telemetry.
-
-#### Inherited from
-
-`BaseProvider.name`
-
-## Methods
-
-### \_setExecuteToolFn()
-
-> **\_setExecuteToolFn**(`executeToolFn`): `void`
-
-Defined in: [packages/core/src/provider/BaseProvider.ts:35](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/provider/BaseProvider.ts#L35)
-
-**`Internal`**
-
-Set the function to execute a tool.
-This is set automatically and injected by the core SDK.
-
-#### Parameters
-
-##### executeToolFn
-
-`GlobalExecuteToolFn`
-
-#### Returns
-
-`void`
-
-#### Inherited from
-
-`BaseProvider._setExecuteToolFn`
-
-***
-
-### executeTool()
-
-> **executeTool**(`toolSlug`, `body`, `modifers?`): `Promise`\<\{ \}\>
-
-Defined in: [packages/core/src/provider/BaseProvider.ts:49](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/provider/BaseProvider.ts#L49)
-
-Global function to execute a tool.
-This function is used by providerds to implement helper functions to execute tools.
-This is a 1:1 mapping of the `execute` method in the `Tools` class.
-
-#### Parameters
-
-##### toolSlug
-
-`string`
-
-The slug of the tool to execute.
-
-##### body
-
-The body of the tool execution.
-
-##### modifers?
-
-`ExecuteToolModifiers`
-
-The modifiers of the tool execution.
-
-#### Returns
-
-`Promise`\<\{ \}\>
-
-The result of the tool execution.
-
-#### Inherited from
-
-`BaseProvider.executeTool`
-
-***
-
-### wrapTool()
-
-> `abstract` **wrapTool**(`tool`, `executeTool`): `TTool`
-
-Defined in: [packages/core/src/provider/BaseProvider.ts:96](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/provider/BaseProvider.ts#L96)
-
-Wrap a tool in the provider specific format.
-
-#### Parameters
-
-##### tool
-
-The tool to wrap.
-
-##### executeTool
-
-`ExecuteToolFn`
-
-#### Returns
-
-`TTool`
-
-The wrapped tool.
-
-***
-
-### wrapTools()
-
-> `abstract` **wrapTools**(`tools`, `executeTool`): `TToolCollection`
-
-Defined in: [packages/core/src/provider/BaseProvider.ts:102](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/provider/BaseProvider.ts#L102)
-
-Wrap a list of tools in the provider specific format.
-
-#### Parameters
-
-##### tools
-
-`object`[]
-
-The tools to wrap.
-
-##### executeTool
-
-`ExecuteToolFn`
-
-#### Returns
-
-`TToolCollection`
-
-The wrapped tools.
diff --git a/fern/pages/sdk/typescript/provider/BaseProvider/classes/BaseNonAgenticProvider.mdx b/fern/pages/sdk/typescript/provider/BaseProvider/classes/BaseNonAgenticProvider.mdx
deleted file mode 100644
index 9d47edaee..000000000
--- a/fern/pages/sdk/typescript/provider/BaseProvider/classes/BaseNonAgenticProvider.mdx
+++ /dev/null
@@ -1,190 +0,0 @@
-[**@composio/core**](../../../README.mdx)
-
-***
-
-[@composio/core](../../../README.mdx) / [provider/BaseProvider](../README.mdx) / BaseNonAgenticProvider
-
-# Class: `abstract` BaseNonAgenticProvider\<TToolCollection, TTool\>
-
-Defined in: [packages/core/src/provider/BaseProvider.ts:66](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/provider/BaseProvider.ts#L66)
-
-Base class for all non-agentic toolsets.
-This class is not meant to be used directly, but rather to be extended by concrete provider implementations.
-
-## Extends
-
-- `BaseProvider`
-
-## Extended by
-
-- [`ComposioProvider`](../../ComposioProvider/classes/ComposioProvider.mdx)
-- [`OpenAIProvider`](../../OpenAIProvider/classes/OpenAIProvider.mdx)
-
-## Type Parameters
-
-### TToolCollection
-
-`TToolCollection`
-
-### TTool
-
-`TTool`
-
-## Constructors
-
-### Constructor
-
-> **new BaseNonAgenticProvider**\<`TToolCollection`, `TTool`\>(): `BaseNonAgenticProvider`\<`TToolCollection`, `TTool`\>
-
-#### Returns
-
-`BaseNonAgenticProvider`\<`TToolCollection`, `TTool`\>
-
-#### Inherited from
-
-`BaseProvider.constructor`
-
-## Properties
-
-### \_isAgentic
-
-> `readonly` **\_isAgentic**: `false` = `false`
-
-Defined in: [packages/core/src/provider/BaseProvider.ts:67](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/provider/BaseProvider.ts#L67)
-
-**`Internal`**
-
-Whether the provider is agentic.
-This is set automatically set by the core SDK implementation for different provider types.
-
-#### Overrides
-
-`BaseProvider._isAgentic`
-
-***
-
-### name
-
-> `abstract` `readonly` **name**: `string`
-
-Defined in: [packages/core/src/provider/BaseProvider.ts:17](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/provider/BaseProvider.ts#L17)
-
-The name of the provider.
-Used to identify the provider in the telemetry.
-
-#### Inherited from
-
-`BaseProvider.name`
-
-## Methods
-
-### \_setExecuteToolFn()
-
-> **\_setExecuteToolFn**(`executeToolFn`): `void`
-
-Defined in: [packages/core/src/provider/BaseProvider.ts:35](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/provider/BaseProvider.ts#L35)
-
-**`Internal`**
-
-Set the function to execute a tool.
-This is set automatically and injected by the core SDK.
-
-#### Parameters
-
-##### executeToolFn
-
-`GlobalExecuteToolFn`
-
-#### Returns
-
-`void`
-
-#### Inherited from
-
-`BaseProvider._setExecuteToolFn`
-
-***
-
-### executeTool()
-
-> **executeTool**(`toolSlug`, `body`, `modifers?`): `Promise`\<\{ \}\>
-
-Defined in: [packages/core/src/provider/BaseProvider.ts:49](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/provider/BaseProvider.ts#L49)
-
-Global function to execute a tool.
-This function is used by providerds to implement helper functions to execute tools.
-This is a 1:1 mapping of the `execute` method in the `Tools` class.
-
-#### Parameters
-
-##### toolSlug
-
-`string`
-
-The slug of the tool to execute.
-
-##### body
-
-The body of the tool execution.
-
-##### modifers?
-
-`ExecuteToolModifiers`
-
-The modifiers of the tool execution.
-
-#### Returns
-
-`Promise`\<\{ \}\>
-
-The result of the tool execution.
-
-#### Inherited from
-
-`BaseProvider.executeTool`
-
-***
-
-### wrapTool()
-
-> `abstract` **wrapTool**(`tool`): `TTool`
-
-Defined in: [packages/core/src/provider/BaseProvider.ts:74](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/provider/BaseProvider.ts#L74)
-
-Wrap a tool in the provider specific format.
-
-#### Parameters
-
-##### tool
-
-The tool to wrap.
-
-#### Returns
-
-`TTool`
-
-The wrapped tool.
-
-***
-
-### wrapTools()
-
-> `abstract` **wrapTools**(`tools`): `TToolCollection`
-
-Defined in: [packages/core/src/provider/BaseProvider.ts:80](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/provider/BaseProvider.ts#L80)
-
-Wrap a list of tools in the provider specific format.
-
-#### Parameters
-
-##### tools
-
-`object`[]
-
-The tools to wrap.
-
-#### Returns
-
-`TToolCollection`
-
-The wrapped tools.
diff --git a/fern/pages/sdk/typescript/provider/BaseProvider/type-aliases/BaseComposioProvider.mdx b/fern/pages/sdk/typescript/provider/BaseProvider/type-aliases/BaseComposioProvider.mdx
deleted file mode 100644
index 68a252d88..000000000
--- a/fern/pages/sdk/typescript/provider/BaseProvider/type-aliases/BaseComposioProvider.mdx
+++ /dev/null
@@ -1,26 +0,0 @@
-[**@composio/core**](../../../README.mdx)
-
-***
-
-[@composio/core](../../../README.mdx) / [provider/BaseProvider](../README.mdx) / BaseComposioProvider
-
-# Type Alias: BaseComposioProvider\<TToolCollection, TTool\>
-
-> **BaseComposioProvider**\<`TToolCollection`, `TTool`\> = [`BaseNonAgenticProvider`](../classes/BaseNonAgenticProvider.mdx)\<`TToolCollection`, `TTool`\> \| [`BaseAgenticProvider`](../classes/BaseAgenticProvider.mdx)\<`TToolCollection`, `TTool`\>
-
-Defined in: [packages/core/src/provider/BaseProvider.ts:110](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/provider/BaseProvider.ts#L110)
-
-**`Internal`**
-
-Base type for all toolsets.
-This type is used to infer the type of the provider from the provider implementation.
-
-## Type Parameters
-
-### TToolCollection
-
-`TToolCollection`
-
-### TTool
-
-`TTool`
diff --git a/fern/pages/sdk/typescript/provider/ComposioProvider/README.mdx b/fern/pages/sdk/typescript/provider/ComposioProvider/README.mdx
deleted file mode 100644
index 5c3687c79..000000000
--- a/fern/pages/sdk/typescript/provider/ComposioProvider/README.mdx
+++ /dev/null
@@ -1,11 +0,0 @@
-[**@composio/core**](../../README.mdx)
-
-***
-
-[@composio/core](../../README.mdx) / provider/ComposioProvider
-
-# provider/ComposioProvider
-
-## Classes
-
-- [ComposioProvider](classes/ComposioProvider.mdx)
diff --git a/fern/pages/sdk/typescript/provider/ComposioProvider/classes/ComposioProvider.mdx b/fern/pages/sdk/typescript/provider/ComposioProvider/classes/ComposioProvider.mdx
deleted file mode 100644
index 557102f58..000000000
--- a/fern/pages/sdk/typescript/provider/ComposioProvider/classes/ComposioProvider.mdx
+++ /dev/null
@@ -1,183 +0,0 @@
-[**@composio/core**](../../../README.mdx)
-
-***
-
-[@composio/core](../../../README.mdx) / [provider/ComposioProvider](../README.mdx) / ComposioProvider
-
-# Class: ComposioProvider
-
-Defined in: [packages/core/src/provider/ComposioProvider.ts:14](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/provider/ComposioProvider.ts#L14)
-
-Base class for all non-agentic toolsets.
-This class is not meant to be used directly, but rather to be extended by concrete provider implementations.
-
-## Extends
-
-- [`BaseNonAgenticProvider`](../../BaseProvider/classes/BaseNonAgenticProvider.mdx)\<`CustomTool`[], `CustomTool`\>
-
-## Constructors
-
-### Constructor
-
-> **new ComposioProvider**(): `ComposioProvider`
-
-#### Returns
-
-`ComposioProvider`
-
-#### Inherited from
-
-[`BaseNonAgenticProvider`](../../BaseProvider/classes/BaseNonAgenticProvider.mdx).[`constructor`](../../BaseProvider/classes/BaseNonAgenticProvider.mdx#constructor)
-
-## Properties
-
-### \_isAgentic
-
-> `readonly` **\_isAgentic**: `false` = `false`
-
-Defined in: [packages/core/src/provider/BaseProvider.ts:67](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/provider/BaseProvider.ts#L67)
-
-**`Internal`**
-
-Whether the provider is agentic.
-This is set automatically set by the core SDK implementation for different provider types.
-
-#### Inherited from
-
-[`BaseNonAgenticProvider`](../../BaseProvider/classes/BaseNonAgenticProvider.mdx).[`_isAgentic`](../../BaseProvider/classes/BaseNonAgenticProvider.mdx#_isagentic)
-
-***
-
-### name
-
-> `readonly` **name**: `"ComposioProvider"` = `'ComposioProvider'`
-
-Defined in: [packages/core/src/provider/ComposioProvider.ts:15](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/provider/ComposioProvider.ts#L15)
-
-The name of the provider.
-Used to identify the provider in the telemetry.
-
-#### Overrides
-
-[`BaseNonAgenticProvider`](../../BaseProvider/classes/BaseNonAgenticProvider.mdx).[`name`](../../BaseProvider/classes/BaseNonAgenticProvider.mdx#name)
-
-## Methods
-
-### \_setExecuteToolFn()
-
-> **\_setExecuteToolFn**(`executeToolFn`): `void`
-
-Defined in: [packages/core/src/provider/BaseProvider.ts:35](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/provider/BaseProvider.ts#L35)
-
-**`Internal`**
-
-Set the function to execute a tool.
-This is set automatically and injected by the core SDK.
-
-#### Parameters
-
-##### executeToolFn
-
-`GlobalExecuteToolFn`
-
-#### Returns
-
-`void`
-
-#### Inherited from
-
-[`BaseNonAgenticProvider`](../../BaseProvider/classes/BaseNonAgenticProvider.mdx).[`_setExecuteToolFn`](../../BaseProvider/classes/BaseNonAgenticProvider.mdx#_setexecutetoolfn)
-
-***
-
-### executeTool()
-
-> **executeTool**(`toolSlug`, `body`, `modifers?`): `Promise`\<\{ \}\>
-
-Defined in: [packages/core/src/provider/BaseProvider.ts:49](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/provider/BaseProvider.ts#L49)
-
-Global function to execute a tool.
-This function is used by providerds to implement helper functions to execute tools.
-This is a 1:1 mapping of the `execute` method in the `Tools` class.
-
-#### Parameters
-
-##### toolSlug
-
-`string`
-
-The slug of the tool to execute.
-
-##### body
-
-The body of the tool execution.
-
-##### modifers?
-
-`ExecuteToolModifiers`
-
-The modifiers of the tool execution.
-
-#### Returns
-
-`Promise`\<\{ \}\>
-
-The result of the tool execution.
-
-#### Inherited from
-
-[`BaseNonAgenticProvider`](../../BaseProvider/classes/BaseNonAgenticProvider.mdx).[`executeTool`](../../BaseProvider/classes/BaseNonAgenticProvider.mdx#executetool)
-
-***
-
-### wrapTool()
-
-> **wrapTool**(`tool`): `CustomTool`
-
-Defined in: [packages/core/src/provider/ComposioProvider.ts:17](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/provider/ComposioProvider.ts#L17)
-
-Wrap a tool in the provider specific format.
-
-#### Parameters
-
-##### tool
-
-The tool to wrap.
-
-#### Returns
-
-`CustomTool`
-
-The wrapped tool.
-
-#### Overrides
-
-[`BaseNonAgenticProvider`](../../BaseProvider/classes/BaseNonAgenticProvider.mdx).[`wrapTool`](../../BaseProvider/classes/BaseNonAgenticProvider.mdx#wraptool)
-
-***
-
-### wrapTools()
-
-> **wrapTools**(`tools`): `CustomTool`[]
-
-Defined in: [packages/core/src/provider/ComposioProvider.ts:21](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/provider/ComposioProvider.ts#L21)
-
-Wrap a list of tools in the provider specific format.
-
-#### Parameters
-
-##### tools
-
-`object`[]
-
-The tools to wrap.
-
-#### Returns
-
-`CustomTool`[]
-
-The wrapped tools.
-
-#### Overrides
-
-[`BaseNonAgenticProvider`](../../BaseProvider/classes/BaseNonAgenticProvider.mdx).[`wrapTools`](../../BaseProvider/classes/BaseNonAgenticProvider.mdx#wraptools)
diff --git a/fern/pages/sdk/typescript/provider/OpenAIProvider/README.mdx b/fern/pages/sdk/typescript/provider/OpenAIProvider/README.mdx
deleted file mode 100644
index d75de6d0e..000000000
--- a/fern/pages/sdk/typescript/provider/OpenAIProvider/README.mdx
+++ /dev/null
@@ -1,16 +0,0 @@
-[**@composio/core**](../../README.mdx)
-
-***
-
-[@composio/core](../../README.mdx) / provider/OpenAIProvider
-
-# provider/OpenAIProvider
-
-## Classes
-
-- [OpenAIProvider](classes/OpenAIProvider.mdx)
-
-## Type Aliases
-
-- [OpenAiTool](type-aliases/OpenAiTool.mdx)
-- [OpenAiToolCollection](type-aliases/OpenAiToolCollection.mdx)
diff --git a/fern/pages/sdk/typescript/provider/OpenAIProvider/classes/OpenAIProvider.mdx b/fern/pages/sdk/typescript/provider/OpenAIProvider/classes/OpenAIProvider.mdx
deleted file mode 100644
index d1d04dbd6..000000000
--- a/fern/pages/sdk/typescript/provider/OpenAIProvider/classes/OpenAIProvider.mdx
+++ /dev/null
@@ -1,655 +0,0 @@
-[**@composio/core**](../../../README.mdx)
-
-***
-
-[@composio/core](../../../README.mdx) / [provider/OpenAIProvider](../README.mdx) / OpenAIProvider
-
-# Class: OpenAIProvider
-
-Defined in: [packages/core/src/provider/OpenAIProvider.ts:20](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/provider/OpenAIProvider.ts#L20)
-
-Base class for all non-agentic toolsets.
-This class is not meant to be used directly, but rather to be extended by concrete provider implementations.
-
-## Extends
-
-- [`BaseNonAgenticProvider`](../../BaseProvider/classes/BaseNonAgenticProvider.mdx)\<[`OpenAiToolCollection`](../type-aliases/OpenAiToolCollection.mdx), [`OpenAiTool`](../type-aliases/OpenAiTool.mdx)\>
-
-## Constructors
-
-### Constructor
-
-> **new OpenAIProvider**(): `OpenAIProvider`
-
-Defined in: [packages/core/src/provider/OpenAIProvider.ts:43](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/provider/OpenAIProvider.ts#L43)
-
-Creates a new instance of the OpenAIProvider.
-
-This is the default provider for the Composio SDK and is automatically
-available without additional installation.
-
-#### Returns
-
-`OpenAIProvider`
-
-#### Example
-
-```typescript
-// The OpenAIProvider is used by default when initializing Composio
-const composio = new Composio({
- apiKey: 'your-api-key'
-});
-
-// You can also explicitly specify it
-const composio = new Composio({
- apiKey: 'your-api-key',
- provider: new OpenAIProvider()
-});
-```
-
-#### Overrides
-
-[`BaseNonAgenticProvider`](../../BaseProvider/classes/BaseNonAgenticProvider.mdx).[`constructor`](../../BaseProvider/classes/BaseNonAgenticProvider.mdx#constructor)
-
-## Properties
-
-### \_isAgentic
-
-> `readonly` **\_isAgentic**: `false` = `false`
-
-Defined in: [packages/core/src/provider/BaseProvider.ts:67](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/provider/BaseProvider.ts#L67)
-
-**`Internal`**
-
-Whether the provider is agentic.
-This is set automatically set by the core SDK implementation for different provider types.
-
-#### Inherited from
-
-[`BaseNonAgenticProvider`](../../BaseProvider/classes/BaseNonAgenticProvider.mdx).[`_isAgentic`](../../BaseProvider/classes/BaseNonAgenticProvider.mdx#_isagentic)
-
-***
-
-### name
-
-> `readonly` **name**: `"openai"` = `'openai'`
-
-Defined in: [packages/core/src/provider/OpenAIProvider.ts:21](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/provider/OpenAIProvider.ts#L21)
-
-The name of the provider.
-Used to identify the provider in the telemetry.
-
-#### Overrides
-
-[`BaseNonAgenticProvider`](../../BaseProvider/classes/BaseNonAgenticProvider.mdx).[`name`](../../BaseProvider/classes/BaseNonAgenticProvider.mdx#name)
-
-## Methods
-
-### \_setExecuteToolFn()
-
-> **\_setExecuteToolFn**(`executeToolFn`): `void`
-
-Defined in: [packages/core/src/provider/BaseProvider.ts:35](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/provider/BaseProvider.ts#L35)
-
-**`Internal`**
-
-Set the function to execute a tool.
-This is set automatically and injected by the core SDK.
-
-#### Parameters
-
-##### executeToolFn
-
-`GlobalExecuteToolFn`
-
-#### Returns
-
-`void`
-
-#### Inherited from
-
-[`BaseNonAgenticProvider`](../../BaseProvider/classes/BaseNonAgenticProvider.mdx).[`_setExecuteToolFn`](../../BaseProvider/classes/BaseNonAgenticProvider.mdx#_setexecutetoolfn)
-
-***
-
-### executeTool()
-
-> **executeTool**(`toolSlug`, `body`, `modifers?`): `Promise`\<\{ \}\>
-
-Defined in: [packages/core/src/provider/BaseProvider.ts:49](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/provider/BaseProvider.ts#L49)
-
-Global function to execute a tool.
-This function is used by providerds to implement helper functions to execute tools.
-This is a 1:1 mapping of the `execute` method in the `Tools` class.
-
-#### Parameters
-
-##### toolSlug
-
-`string`
-
-The slug of the tool to execute.
-
-##### body
-
-The body of the tool execution.
-
-##### modifers?
-
-`ExecuteToolModifiers`
-
-The modifiers of the tool execution.
-
-#### Returns
-
-`Promise`\<\{ \}\>
-
-The result of the tool execution.
-
-#### Inherited from
-
-[`BaseNonAgenticProvider`](../../BaseProvider/classes/BaseNonAgenticProvider.mdx).[`executeTool`](../../BaseProvider/classes/BaseNonAgenticProvider.mdx#executetool)
-
-***
-
-### executeToolCall()
-
-> **executeToolCall**(`userId`, `tool`, `options?`, `modifiers?`): `Promise`\<`string`\>
-
-Defined in: [packages/core/src/provider/OpenAIProvider.ts:160](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/provider/OpenAIProvider.ts#L160)
-
-Executes a tool call from OpenAI's chat completion.
-
-This method processes a tool call from OpenAI's chat completion API,
-executes the corresponding Composio tool, and returns the result.
-
-#### Parameters
-
-##### userId
-
-`string`
-
-The user ID for authentication and tracking
-
-##### tool
-
-`ChatCompletionMessageToolCall`
-
-The tool call from OpenAI
-
-##### options?
-
-`ExecuteToolFnOptions`
-
-Optional execution options
-
-##### modifiers?
-
-`ExecuteToolModifiers`
-
-Optional execution modifiers
-
-#### Returns
-
-`Promise`\<`string`\>
-
-The result of the tool call as a JSON string
-
-#### Example
-
-```typescript
-// Execute a tool call from OpenAI
-const toolCall = {
- id: 'call_abc123',
- type: 'function',
- function: {
- name: 'SEARCH_TOOL',
- arguments: '{"query":"composio documentation"}'
- }
-};
-
-const result = await provider.executeToolCall(
- 'user123',
- toolCall,
- { connectedAccountId: 'conn_xyz456' }
-);
-console.log(JSON.parse(result));
-```
-
-***
-
-### handleAssistantMessage()
-
-> **handleAssistantMessage**(`userId`, `run`, `options?`, `modifiers?`): `Promise`\<`ToolOutput`[]\>
-
-Defined in: [packages/core/src/provider/OpenAIProvider.ts:282](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/provider/OpenAIProvider.ts#L282)
-
-Handles all the tool calls from the OpenAI Assistant API.
-
-This method processes tool calls from an OpenAI Assistant run,
-executes each tool call, and returns the tool outputs for submission.
-
-#### Parameters
-
-##### userId
-
-`string`
-
-The user ID for authentication and tracking
-
-##### run
-
-`Run`
-
-The Assistant run object containing tool calls
-
-##### options?
-
-`ExecuteToolFnOptions`
-
-Optional execution options
-
-##### modifiers?
-
-`ExecuteToolModifiers`
-
-Optional execution modifiers
-
-#### Returns
-
-`Promise`\<`ToolOutput`[]\>
-
-Array of tool outputs for submission
-
-#### Example
-
-```typescript
-// Handle tool calls from an OpenAI Assistant run
-const run = {
- id: 'run_abc123',
- required_action: {
- submit_tool_outputs: {
- tool_calls: [
- {
- id: 'call_xyz789',
- type: 'function',
- function: {
- name: 'SEARCH_TOOL',
- arguments: '{"query":"composio documentation"}'
- }
- }
- ]
- }
- }
-};
-
-const toolOutputs = await provider.handleAssistantMessage(
- 'user123',
- run,
- { connectedAccountId: 'conn_xyz456' }
-);
-
-// Submit tool outputs back to OpenAI
-await openai.beta.threads.runs.submitToolOutputs(
- thread.id,
- run.id,
- { tool_outputs: toolOutputs }
-);
-```
-
-***
-
-### handleToolCalls()
-
-> **handleToolCalls**(`userId`, `chatCompletion`, `options?`, `modifiers?`): `Promise`\<`string`[]\>
-
-Defined in: [packages/core/src/provider/OpenAIProvider.ts:218](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/provider/OpenAIProvider.ts#L218)
-
-Handles tool calls from OpenAI's chat completion response.
-
-This method processes tool calls from an OpenAI chat completion response,
-executes each tool call, and returns the results.
-
-#### Parameters
-
-##### userId
-
-`string`
-
-The user ID for authentication and tracking
-
-##### chatCompletion
-
-`ChatCompletion`
-
-The chat completion response from OpenAI
-
-##### options?
-
-`ExecuteToolFnOptions`
-
-Optional execution options
-
-##### modifiers?
-
-`ExecuteToolModifiers`
-
-Optional execution modifiers
-
-#### Returns
-
-`Promise`\<`string`[]\>
-
-Array of tool execution results as JSON strings
-
-#### Example
-
-```typescript
-// Handle tool calls from a chat completion response
-const chatCompletion = {
- choices: [
- {
- message: {
- tool_calls: [
- {
- id: 'call_abc123',
- type: 'function',
- function: {
- name: 'SEARCH_TOOL',
- arguments: '{"query":"composio documentation"}'
- }
- }
- ]
- }
- }
- ]
-};
-
-const results = await provider.handleToolCalls(
- 'user123',
- chatCompletion,
- { connectedAccountId: 'conn_xyz456' }
-);
-console.log(results); // Array of tool execution results
-```
-
-***
-
-### waitAndHandleAssistantStreamToolCalls()
-
-> **waitAndHandleAssistantStreamToolCalls**(`userId`, `client`, `runStream`, `thread`, `options?`, `modifiers?`): `AsyncGenerator`\<`AssistantStreamEvent`, `void`, `unknown`\>
-
-Defined in: [packages/core/src/provider/OpenAIProvider.ts:354](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/provider/OpenAIProvider.ts#L354)
-
-Waits for the assistant stream and handles the tool calls.
-
-This method processes an OpenAI Assistant stream, handles any tool calls
-that require action, and yields each event from the stream. It's designed
-for streaming Assistant responses while handling tool calls in real-time.
-
-#### Parameters
-
-##### userId
-
-`string`
-
-The user ID for authentication and tracking
-
-##### client
-
-`OpenAI`
-
-The OpenAI client instance
-
-##### runStream
-
-`Stream`\<`AssistantStreamEvent`\>
-
-The Assistant run stream
-
-##### thread
-
-`Thread`
-
-The thread object
-
-##### options?
-
-`ExecuteToolFnOptions`
-
-Optional execution options
-
-##### modifiers?
-
-`ExecuteToolModifiers`
-
-Optional execution modifiers
-
-#### Returns
-
-`AsyncGenerator`\<`AssistantStreamEvent`, `void`, `unknown`\>
-
-Generator yielding stream events
-
-#### Example
-
-```typescript
-// Process an OpenAI Assistant stream with tool calls
-const thread = await openai.beta.threads.create();
-const runStream = openai.beta.threads.runs.stream(thread.id, {
- assistant_id: 'asst_abc123',
- tools: provider.wrapTools(composioTools)
-});
-
-// Process the stream and handle tool calls
-const streamProcessor = provider.waitAndHandleAssistantStreamToolCalls(
- 'user123',
- openai,
- runStream,
- thread,
- { connectedAccountId: 'conn_xyz456' }
-);
-
-// Consume the stream events
-for await (const event of streamProcessor) {
- if (event.event === 'thread.message.delta') {
- console.log(event.data.delta.content);
- }
-}
-```
-
-***
-
-### waitAndHandleAssistantToolCalls()
-
-> **waitAndHandleAssistantToolCalls**(`userId`, `client`, `run`, `thread`, `options?`, `modifiers?`): `Promise`\<`Run`\>
-
-Defined in: [packages/core/src/provider/OpenAIProvider.ts:472](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/provider/OpenAIProvider.ts#L472)
-
-Waits for the assistant tool calls and handles them.
-
-This method polls an OpenAI Assistant run until it completes or requires action,
-handles any tool calls, and returns the final run object. It's designed for
-non-streaming Assistant interactions.
-
-#### Parameters
-
-##### userId
-
-`string`
-
-The user ID for authentication and tracking
-
-##### client
-
-`OpenAI`
-
-The OpenAI client instance
-
-##### run
-
-`Run`
-
-The initial run object
-
-##### thread
-
-`Thread`
-
-The thread object
-
-##### options?
-
-`ExecuteToolFnOptions`
-
-Optional execution options
-
-##### modifiers?
-
-`ExecuteToolModifiers`
-
-Optional execution modifiers
-
-#### Returns
-
-`Promise`\<`Run`\>
-
-The final run object after completion
-
-#### Example
-
-```typescript
-// Process an OpenAI Assistant run with tool calls
-const thread = await openai.beta.threads.create();
-await openai.beta.threads.messages.create(thread.id, {
- role: 'user',
- content: 'Find information about Composio'
-});
-
-let run = await openai.beta.threads.runs.create(thread.id, {
- assistant_id: 'asst_abc123',
- tools: provider.wrapTools(composioTools)
-});
-
-// Wait for the run to complete, handling any tool calls
-run = await provider.waitAndHandleAssistantToolCalls(
- 'user123',
- openai,
- run,
- thread,
- { connectedAccountId: 'conn_xyz456' }
-);
-
-// Get the final messages after run completion
-const messages = await openai.beta.threads.messages.list(thread.id);
-console.log(messages.data[0].content);
-```
-
-***
-
-### wrapTool()
-
-> **wrapTool**(`tool`): `ChatCompletionTool`
-
-Defined in: [packages/core/src/provider/OpenAIProvider.ts:74](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/provider/OpenAIProvider.ts#L74)
-
-Wraps a Composio tool in the OpenAI function calling format.
-
-This method transforms a Composio tool definition into the format
-expected by OpenAI's function calling API.
-
-#### Parameters
-
-##### tool
-
-The Composio tool to wrap
-
-#### Returns
-
-`ChatCompletionTool`
-
-The wrapped tool in OpenAI format
-
-#### Example
-
-```typescript
-// Wrap a single tool for use with OpenAI
-const composioTool = {
- slug: 'SEARCH_TOOL',
- description: 'Search for information',
- inputParameters: {
- type: 'object',
- properties: {
- query: { type: 'string' }
- },
- required: ['query']
- }
-};
-
-const openAITool = provider.wrapTool(composioTool);
-```
-
-#### Overrides
-
-[`BaseNonAgenticProvider`](../../BaseProvider/classes/BaseNonAgenticProvider.mdx).[`wrapTool`](../../BaseProvider/classes/BaseNonAgenticProvider.mdx#wraptool)
-
-***
-
-### wrapTools()
-
-> **wrapTools**(`tools`): [`OpenAiToolCollection`](../type-aliases/OpenAiToolCollection.mdx)
-
-Defined in: [packages/core/src/provider/OpenAIProvider.ts:124](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/provider/OpenAIProvider.ts#L124)
-
-Wraps multiple Composio tools in the OpenAI function calling format.
-
-This method transforms a list of Composio tools into the format
-expected by OpenAI's function calling API.
-
-#### Parameters
-
-##### tools
-
-`object`[]
-
-Array of Composio tools to wrap
-
-#### Returns
-
-[`OpenAiToolCollection`](../type-aliases/OpenAiToolCollection.mdx)
-
-Array of wrapped tools in OpenAI format
-
-#### Example
-
-```typescript
-// Wrap multiple tools for use with OpenAI
-const composioTools = [
- {
- slug: 'SEARCH_TOOL',
- description: 'Search for information',
- inputParameters: {
- type: 'object',
- properties: {
- query: { type: 'string' }
- }
- }
- },
- {
- slug: 'WEATHER_TOOL',
- description: 'Get weather information',
- inputParameters: {
- type: 'object',
- properties: {
- location: { type: 'string' }
- }
- }
- }
-];
-
-const openAITools = provider.wrapTools(composioTools);
-```
-
-#### Overrides
-
-[`BaseNonAgenticProvider`](../../BaseProvider/classes/BaseNonAgenticProvider.mdx).[`wrapTools`](../../BaseProvider/classes/BaseNonAgenticProvider.mdx#wraptools)
diff --git a/fern/pages/sdk/typescript/provider/OpenAIProvider/type-aliases/OpenAiTool.mdx b/fern/pages/sdk/typescript/provider/OpenAIProvider/type-aliases/OpenAiTool.mdx
deleted file mode 100644
index c03742c8c..000000000
--- a/fern/pages/sdk/typescript/provider/OpenAIProvider/type-aliases/OpenAiTool.mdx
+++ /dev/null
@@ -1,11 +0,0 @@
-[**@composio/core**](../../../README.mdx)
-
-***
-
-[@composio/core](../../../README.mdx) / [provider/OpenAIProvider](../README.mdx) / OpenAiTool
-
-# Type Alias: OpenAiTool
-
-> **OpenAiTool** = `OpenAI.ChatCompletionTool`
-
-Defined in: [packages/core/src/provider/OpenAIProvider.ts:18](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/provider/OpenAIProvider.ts#L18)
diff --git a/fern/pages/sdk/typescript/provider/OpenAIProvider/type-aliases/OpenAiToolCollection.mdx b/fern/pages/sdk/typescript/provider/OpenAIProvider/type-aliases/OpenAiToolCollection.mdx
deleted file mode 100644
index 84f6a7d06..000000000
--- a/fern/pages/sdk/typescript/provider/OpenAIProvider/type-aliases/OpenAiToolCollection.mdx
+++ /dev/null
@@ -1,11 +0,0 @@
-[**@composio/core**](../../../README.mdx)
-
-***
-
-[@composio/core](../../../README.mdx) / [provider/OpenAIProvider](../README.mdx) / OpenAiToolCollection
-
-# Type Alias: OpenAiToolCollection
-
-> **OpenAiToolCollection** = [`OpenAiTool`](OpenAiTool.mdx)[]
-
-Defined in: [packages/core/src/provider/OpenAIProvider.ts:19](https://github.com/ComposioHQ/sdk-v3-ts/blob/d452a596cdc5436dd82cd6e55ff43fd070539a9c/packages/core/src/provider/OpenAIProvider.ts#L19)
diff --git a/fern/pages/tool-calling/after-execution-modifiers.mdx b/fern/pages/tool-calling/after-execution-modifiers.mdx
deleted file mode 100644
index d0c73083a..000000000
--- a/fern/pages/tool-calling/after-execution-modifiers.mdx
+++ /dev/null
@@ -1,121 +0,0 @@
----
-title: After Execution Modifiers
-image: "https://og.composio.dev/api/og?title=After%20Execution%20Modifiers" # image for socials
-keywords: ""
-subtitle: "Learn how to use after execution modifiers to transform tool results after execution."
-hide-nav-links: false
----
-
-
-After execution modifiers are part of Composio SDK's powerful middleware capabilities that allow you to customize and extend the behavior of tools.
-
-## After Execution Modifiers
-These modifiers are called after the tool is executed by the LLM. This allows you to modify the *result* of the tool before it is returned to the agent.
-
-**Useful for:**
-- Modifying or truncating the output of the tool.
-- Convert the output to a different format before returning it to the agent.
-
-<Frame>
- <img src="../../assets/images/after-execute.png" alt="After Execution Modifier" />
-</Frame>
-
-<Note>Below we use the `afterToolExecute` modifier to truncate the output of the `HACKERNEWS_GET_USER` tool and only return the karma of the user.</Note>
-
-<Tabs>
-<Tab title="With Chat Completions">
-Since completion providers don't have a function execution step -- Composio will execute the tool call directly.
-
-Hence, the modifier is configured on the `tools.execute` method.
-
-<CodeGroup>
-```typescript TypeScript maxLines=60 wordWrap
-const response = await openai.chat.completions.create({
- model: "gpt-4o-mini",
- messages,
- tools: tools,
- tool_choice: "auto",
-});
-
-console.log(response.choices[0].message.tool_calls);
-
-if (response.choices[0].message.tool_calls) {
- const result = await composio.tools.execute(
- "HACKERNEWS_GET_USER",
- {
- userId: userId,
- arguments: JSON.parse(
- response.choices[0].message.tool_calls[0].function.arguments
- ),
- },
- {
- afterToolExecute: (toolSlug, _, result) => {
- if (toolSlug === "HACKERNEWS_GET_USER") {
- const { data } = result;
- const responseData = data.response_data as { karma: number };
- return {
- ...result,
- data: {
- karma: responseData.karma
- },
- };
- }
- return result;
- },
- }
- );
- console.log(JSON.stringify(result, null, 2));
-}
-```
-```python Python maxLines=60 wordWrap
-
-```
-</CodeGroup>
-</Tab>
-
-<Tab title="With Agentic Frameworks">
-Agentic providers have a function execution step.
-The modifier is configured on the `tools.get` method which modifies the execution logic within the framework!
-<CodeGroup>
-```typescript TypeScript maxLines=60 wordWrap {24-27}
-import { Composio } from "@composio/core";
-import { VercelProvider } from "@composio/vercel";
-import { generateText } from "ai";
-import { openai } from "@ai-sdk/openai";
-import { v4 as uuidv4 } from "uuid";
-
-const composio = new Composio({
- apiKey: process.env.COMPOSIO_API_KEY,
- provider: new VercelProvider(),
-});
-
-const userId = uuidv4(); // The user's ID.
-
-const agenticTools = await composio.tools.get(
- userId,
- {
- tools: ["HACKERNEWS_GET_USER"],
- },
- {
- afterExecute: (toolSlug, toolkitSlug, result) => {
- if (toolSlug === "HACKERNEWS_GET_USER") {
- const { data } = result;
- const responseData = data.response_data as { karma: number };
- return {
- ...result,
- data: {
- karma: responseData.karma
- },
- };
- }
- return result;
- },
- }
-);
-```
-```python Python maxLines=60 wordWrap
-
-```
-</CodeGroup>
-</Tab>
-</Tabs>
\ No newline at end of file
diff --git a/fern/pages/tool-calling/schema-modifiers.mdx b/fern/pages/tool-calling/schema-modifiers.mdx
deleted file mode 100644
index 380a61026..000000000
--- a/fern/pages/tool-calling/schema-modifiers.mdx
+++ /dev/null
@@ -1,115 +0,0 @@
----
-title: Schema Modifiers
-image: "https://og.composio.dev/api/og?title=Schema%20Modifiers" # image for socials
-keywords: ""
-subtitle: "Learn how to use schema modifiers to transform tool schemas before they are seen by agents."
-hide-nav-links: false
----
-
-Schema modifiers are part of Composio SDK's powerful middleware capabilities that allow you to customize and extend the behavior of tools.
-
-## Schema Modifiers
-Schema modifiers transform a tool's schema before the tool is seen by an agent.
-
-<Frame>
- <img src="../../assets/images/schema-modifier.png" alt="Schema Modifier" />
-</Frame>
-**Useful for:**
-- Adding arguments to the tool. For example, adding a `thought` argument to the tool to prompt the agent to explain the reasoning.
-- Hiding arguments from the tool. In cases where the argument is irrelevant to the tool.
-- Adding extra arguments to the tool schema for custom use cases or execution.
-- Adding default values to tool arguments.
-
-<Note>
-Below we modify the schema of the `HACKERNEWS_GET_LATEST_POSTS` to make the `size` argument required and remove the `page` argument.
-</Note>
-
-<CodeGroup>
-```typescript TypeScript maxLines=60 wordWrap
-const userId = "[email protected]";
-
-const tools = await composio.tools.get(
- userId,
- {
- tools: ["HACKERNEWS_GET_LATEST_POSTS", "HACKERNEWS_GET_USER"],
- },
- {
- modifyToolSchema: (toolSlug, _, toolSchema) => {
- if (toolSlug === "HACKERNEWS_GET_LATEST_POSTS") {
- const { inputParameters } = toolSchema;
- if (inputParameters?.properties) {
- delete inputParameters.properties["page"];
- }
- inputParameters.required = ["size"];
- }
- return toolSchema;
- },
- }
-);
-
-console.log(JSON.stringify(tools, null, 2));
-```
-```python Python maxLines=60 wordWrap
-
-```
-</CodeGroup>
-
-In using the above modified tool schema, the `page` argument is removed and the `size` argument is required.
-
-You can test this out by viewing the tool call response in the LLM too!
-
-<Accordion title="Schema modified tool call">
-<CodeGroup>
-
-```typescript TypeScript maxLines=60 wordWrap
-import { Composio } from "@composio/core";
-import { OpenAI } from "openai";
-
-const composio = new Composio({
- apiKey: process.env.COMPOSIO_API_KEY,
-});
-const openai = new OpenAI();
-
-const userId = "[email protected]";
-
-const tools = await composio.tools.get(
- userId,
- {
- tools: ["HACKERNEWS_GET_LATEST_POSTS", "HACKERNEWS_GET_USER"],
- },
- {
- modifyToolSchema: (toolSlug, _, toolSchema) => {
- if (toolSlug === "HACKERNEWS_GET_LATEST_POSTS") {
- const { inputParameters } = toolSchema;
- if (inputParameters?.properties) {
- delete inputParameters.properties["page"];
- }
- inputParameters.required = ["size"];
- }
- return toolSchema;
- },
- }
-);
-
-console.log(JSON.stringify(tools, null, 2));
-
-const response = await openai.chat.completions.create({
- model: "gpt-4o-mini",
- messages: [
- {
- role: "system",
- content: "You are a helpful assistant that can help with tasks.",
- },
- { role: "user", content: "Get the latest posts from Hacker News" },
- ],
- tools: tools,
- tool_choice: "auto",
-});
-
-console.log(response.choices[0].message.tool_calls);
-```
-```python Python maxLines=60 wordWrap
-
-```
-</CodeGroup>
-</Accordion>
\ No newline at end of file
diff --git a/fern/scripts/build-snippets.ts b/fern/scripts/build-snippets.ts
new file mode 100644
index 000000000..e84025dc8
--- /dev/null
+++ b/fern/scripts/build-snippets.ts
@@ -0,0 +1,280 @@
+#!/usr/bin/env bun
+/* eslint-disable no-console */
+
+import fs, { watch } from 'fs';
+import path from 'path';
+
+const DOCS_SRC_DIR = path.join(import.meta.dir, '../docs');
+const PAGES_DIR = path.join(import.meta.dir, '../pages');
+const PROJECT_ROOT = path.join(import.meta.dir, '../..');
+
+interface SnippetCodeProps {
+ src: string;
+ startLine?: number;
+ endLine?: number;
+ highlightStart?: number;
+ highlightEnd?: number;
+ title?: string;
+ language?: string;
+}
+
+function ensureDistDir() {
+ // Remove existing pages directory to ensure clean build
+ if (fs.existsSync(PAGES_DIR)) {
+ fs.rmSync(PAGES_DIR, { recursive: true, force: true });
+ console.log('🧹 Cleaned existing pages directory');
+ }
+
+ // Create fresh pages directory
+ fs.mkdirSync(PAGES_DIR, { recursive: true });
+}
+
+function getLanguageFromPath(filePath: string): { syntax: string; displayName: string } {
+ const extension = filePath.split('.').pop()?.toLowerCase();
+ const languageMap: Record<string, { syntax: string; displayName: string }> = {
+ py: { syntax: 'python', displayName: 'Python' },
+ js: { syntax: 'javascript', displayName: 'JavaScript' },
+ ts: { syntax: 'typescript', displayName: 'TypeScript' },
+ tsx: { syntax: 'typescript', displayName: 'TypeScript' },
+ jsx: { syntax: 'javascript', displayName: 'JavaScript' },
+ java: { syntax: 'java', displayName: 'Java' },
+ cpp: { syntax: 'cpp', displayName: 'C++' },
+ c: { syntax: 'c', displayName: 'C' },
+ go: { syntax: 'go', displayName: 'Go' },
+ rs: { syntax: 'rust', displayName: 'Rust' },
+ php: { syntax: 'php', displayName: 'PHP' },
+ rb: { syntax: 'ruby', displayName: 'Ruby' },
+ swift: { syntax: 'swift', displayName: 'Swift' },
+ kt: { syntax: 'kotlin', displayName: 'Kotlin' },
+ scala: { syntax: 'scala', displayName: 'Scala' },
+ sh: { syntax: 'bash', displayName: 'Bash' },
+ yml: { syntax: 'yaml', displayName: 'YAML' },
+ yaml: { syntax: 'yaml', displayName: 'YAML' },
+ json: { syntax: 'json', displayName: 'JSON' },
+ xml: { syntax: 'xml', displayName: 'XML' },
+ html: { syntax: 'html', displayName: 'HTML' },
+ css: { syntax: 'css', displayName: 'CSS' },
+ scss: { syntax: 'scss', displayName: 'SCSS' },
+ sql: { syntax: 'sql', displayName: 'SQL' },
+ };
+ return languageMap[extension || ''] || { syntax: 'text', displayName: 'Text' };
+}
+
+function readFileLines(filePath: string, startLine?: number, endLine?: number): string {
+ try {
+ const fullPath = path.resolve(PROJECT_ROOT, filePath);
+ const content = fs.readFileSync(fullPath, 'utf8');
+ const lines = content.split('\n');
+
+ const start = startLine ? startLine - 1 : 0;
+ const end = endLine ? endLine : lines.length;
+
+ return lines.slice(start, end).join('\n');
+ } catch (error) {
+ console.warn(`⚠️ Failed to read file: ${filePath}`, error);
+ return `// File not found: ${filePath}`;
+ }
+}
+
+function generateHighlightString(
+ startLine: number,
+ highlightStart?: number,
+ highlightEnd?: number
+): string {
+ if (!highlightStart || !highlightEnd) return '';
+
+ // Convert to relative line numbers (relative to the excerpt)
+ const relativeStart = highlightStart - startLine + 1;
+ const relativeEnd = highlightEnd - startLine + 1;
+
+ if (relativeStart === relativeEnd) {
+ return `{${relativeStart}}`;
+ }
+ return `{${relativeStart}-${relativeEnd}}`;
+}
+
+function parseSnippetCodeTags(content: string): string {
+ const exampleCodeRegex = /<SnippetCode\s+([^>]*?)(?:\s*\/?>|>\s*<\/SnippetCode>)/g;
+
+ return content.replace(exampleCodeRegex, (match, propsString) => {
+ // Parse props from the tag
+ const props: Partial<SnippetCodeProps> = {};
+
+ // Extract src
+ const srcMatch = propsString.match(/src=["']([^"']+)["']/);
+ if (srcMatch) props.src = srcMatch[1];
+
+ // Extract other numeric props (handle both JSX {1} and quoted "1" syntax)
+ const startLineMatch = propsString.match(/startLine=(?:["'](\d+)["']|{(\d+)})/);
+ if (startLineMatch) props.startLine = parseInt(startLineMatch[1] || startLineMatch[2]);
+
+ const endLineMatch = propsString.match(/endLine=(?:["'](\d+)["']|{(\d+)})/);
+ if (endLineMatch) props.endLine = parseInt(endLineMatch[1] || endLineMatch[2]);
+
+ const highlightStartMatch = propsString.match(/highlightStart=(?:["'](\d+)["']|{(\d+)})/);
+ if (highlightStartMatch)
+ props.highlightStart = parseInt(highlightStartMatch[1] || highlightStartMatch[2]);
+
+ const highlightEndMatch = propsString.match(/highlightEnd=(?:["'](\d+)["']|{(\d+)})/);
+ if (highlightEndMatch)
+ props.highlightEnd = parseInt(highlightEndMatch[1] || highlightEndMatch[2]);
+
+ // Extract string props
+ const titleMatch = propsString.match(/title=["']([^"']+)["']/);
+ if (titleMatch) props.title = titleMatch[1];
+
+ const languageMatch = propsString.match(/language=["']([^"']+)["']/);
+ if (languageMatch) props.language = languageMatch[1];
+
+ if (!props.src) {
+ console.warn('⚠️ SnippetCode tag missing src attribute:', match);
+ return '```\n// Error: SnippetCode tag missing src attribute\n```';
+ }
+
+ // Read the file content
+ const codeContent = readFileLines(props.src, props.startLine, props.endLine);
+ const langInfo = getLanguageFromPath(props.src);
+ const syntax = props.language || langInfo.syntax;
+ const displayName = langInfo.displayName;
+
+ // Generate highlight string if needed
+ const highlightString =
+ props.highlightStart && props.highlightEnd
+ ? generateHighlightString(props.startLine || 1, props.highlightStart, props.highlightEnd)
+ : '';
+
+ // Use provided title or fall back to language display name
+ const title = props.title || displayName;
+ const titleComment = ` title="${title}"`;
+
+ // Create the code block with syntax, display name, and maxLines
+ const codeBlock = `\`\`\`${syntax} ${displayName}${highlightString ? ` ${highlightString}` : ''}${titleComment} maxLines=40\n${codeContent}\n\`\`\``;
+
+ return codeBlock;
+ });
+}
+
+function processFile(srcPath: string, distPath: string) {
+ try {
+ const content = fs.readFileSync(srcPath, 'utf8');
+ const processedContent = parseSnippetCodeTags(content);
+
+ // Ensure the directory exists
+ const distDir = path.dirname(distPath);
+ if (!fs.existsSync(distDir)) {
+ fs.mkdirSync(distDir, { recursive: true });
+ }
+
+ fs.writeFileSync(distPath, processedContent);
+ console.log(
+ `βœ… Processed: ${path.relative(DOCS_SRC_DIR, srcPath)} -> ${path.relative(PAGES_DIR, distPath)}`
+ );
+ } catch (error) {
+ console.error(`❌ Error processing ${srcPath}:`, error);
+ }
+}
+
+function processAllFiles() {
+ console.log('πŸ”„ Processing all .mdx files...');
+
+ function processDirectory(srcDir: string) {
+ const entries = fs.readdirSync(srcDir, { withFileTypes: true });
+
+ for (const entry of entries) {
+ const srcPath = path.join(srcDir, entry.name);
+
+ if (entry.isDirectory()) {
+ // Skip dist directory to avoid infinite loops
+ if (entry.name === 'dist') continue;
+ processDirectory(srcPath);
+ } else if (entry.isFile() && entry.name.endsWith('.mdx')) {
+ // Calculate the relative path from the source directory
+ const relativePath = path.relative(DOCS_SRC_DIR, srcPath);
+
+ // Check if this file is in the SDK directory
+ const isInSDK = relativePath.startsWith('sdk/') || relativePath.startsWith('sdk\\');
+
+ // If in SDK, preserve directory structure; otherwise flatten
+ const distPath = isInSDK
+ ? path.join(PAGES_DIR, relativePath)
+ : path.join(PAGES_DIR, entry.name);
+
+ processFile(srcPath, distPath);
+ }
+ }
+ }
+
+ processDirectory(DOCS_SRC_DIR);
+ console.log('βœ… All files processed');
+}
+
+// Watch for changes and reprocess
+function startWatchMode() {
+ console.log('πŸ‘€ Watching for changes...');
+
+ const watcher = watch(DOCS_SRC_DIR, { recursive: true }, (eventType, filename) => {
+ if (!filename) return;
+ if (!filename.endsWith('.mdx')) return;
+
+ const srcPath = path.join(DOCS_SRC_DIR, filename);
+
+ // Check if this file is in the SDK directory
+ const isInSDK = filename.startsWith('sdk/') || filename.startsWith('sdk\\');
+
+ // If in SDK, preserve directory structure; otherwise flatten
+ const distPath = isInSDK
+ ? path.join(PAGES_DIR, filename)
+ : path.join(PAGES_DIR, path.basename(filename));
+
+ if (eventType === 'change' && fs.existsSync(srcPath)) {
+ console.log(`πŸ”„ File changed: ${filename}`);
+ processFile(srcPath, distPath);
+ }
+ });
+
+ // Also watch source files that might be referenced
+ const sourceWatcher = watch(PROJECT_ROOT, { recursive: true }, (eventType, filename) => {
+ if (!filename) return;
+ if (filename.includes('node_modules')) return;
+ if (filename.includes('.git')) return;
+ if (filename.includes('fern/pages')) return; // Skip pages (output) files
+ if (filename.includes('fern/scripts')) return; // Skip the script itself
+
+ // If a source file changes, reprocess all .mdx files since we don't know which ones reference it
+ if (
+ eventType === 'change' &&
+ (filename.endsWith('.ts') || filename.endsWith('.js') || filename.endsWith('.py'))
+ ) {
+ console.log(`πŸ”„ Source file changed: ${filename}, reprocessing all .mdx files...`);
+ processAllFiles();
+ }
+ });
+
+ // Cleanup on exit
+ process.on('SIGINT', () => {
+ console.log('\nπŸ‘‹ Stopping watchers...');
+ watcher.close();
+ sourceWatcher.close();
+ process.exit(0);
+ });
+}
+
+// Main function
+function main() {
+ console.log('πŸš€ Starting SnippetCode processor...');
+
+ ensureDistDir();
+ processAllFiles();
+
+ // Check if we should run in watch mode
+ const isWatchMode = process.argv.includes('--watch') || process.argv.includes('-w');
+
+ if (isWatchMode) {
+ startWatchMode();
+ } else {
+ console.log('βœ… Processing complete. Use --watch flag to enable watch mode.');
+ }
+}
+
+// Run the main function directly
+main();
diff --git a/fern/scripts/convert-cookbooks-mdx.mjs b/fern/scripts/convert-cookbooks-mdx.mjs
deleted file mode 100644
index 1994c80bf..000000000
--- a/fern/scripts/convert-cookbooks-mdx.mjs
+++ /dev/null
@@ -1,38 +0,0 @@
-import fs from "fs/promises";
-import path from "path";
-import { fileURLToPath } from "url";
-
-const __filename = fileURLToPath(import.meta.url);
-const __dirname = path.dirname(__filename);
-
-const cookbooksJsonDir = path.join(__dirname, "./cookbooks-json");
-const cookbooksMdxDir = path.join(__dirname, "./cookbooks-mdx");
-await fs.mkdir(cookbooksMdxDir, { recursive: true });
-
-const cookbooks = await fs.readdir(cookbooksJsonDir);
-
-for (const cookbook of cookbooks) {
- const inputPath = path.join(cookbooksJsonDir, cookbook);
- const outputPath = path.join(
- cookbooksMdxDir,
- cookbook.replace(".json", ".mdx")
- );
- const cookbookJson = await fs.readFile(inputPath, "utf-8");
- const cookbookData = JSON.parse(cookbookJson);
- const str = `${cookbookData.custompage.body}`;
-
- const body = str.replaceAll(
- /\[block:html\](.*?)\[\/block\]/gs,
- (value, b) => {
- return JSON.parse(b.trim()).html;
- }
- );
- const cookbookMdx = `---
-title: ${cookbookData.meta.title}
-slug: /page/${cookbook.replace(".json", "")}
----
-
-${body}
-`;
- await fs.writeFile(outputPath, cookbookMdx);
-}
diff --git a/fern/scripts/download-cookbooks.mjs b/fern/scripts/download-cookbooks.mjs
deleted file mode 100644
index d8cc28e0b..000000000
--- a/fern/scripts/download-cookbooks.mjs
+++ /dev/null
@@ -1,98 +0,0 @@
-import fs from "fs/promises";
-import path from "path";
-import { fileURLToPath } from "url";
-
-const __filename = fileURLToPath(import.meta.url);
-const __dirname = path.dirname(__filename);
-
-const outputDir = path.join(__dirname, "cookbooks-json");
-await fs.mkdir(outputDir, { recursive: true });
-
-const pages = [
- "/page/calendar-agent",
- "/page/basic-tool-use",
- "/page/basic-multi-step",
- "/page/data-analyst-agent",
- "/page/agent-short-term-memory",
- "/page/agent-api-calls",
- "/page/csv-agent",
- "/page/agentic-rag-mixed-data",
- "/page/sql-agent",
- "/page/csv-agent-native-api",
- "/page/pdf-extractor",
- "/page/agentic-multi-stage-rag",
- "/page/basic-multi-step",
- "/page/data-analyst-agent",
- "/page/csv-agent",
- "/page/multilingual-search",
- "/page/creating-a-qa-bot",
- "/page/wikipedia-semantic-search",
- "/page/embed-jobs-serverless-pinecone",
- "/page/elasticsearch-and-cohere",
- "/page/embed-jobs",
- "/page/basic-semantic-search",
- "/page/multilingual-search",
- "/page/wikipedia-search-with-weaviate",
- "/page/creating-a-qa-bot",
- "/page/rerank-demo",
- "/page/embed-jobs-serverless-pinecone",
- "/page/elasticsearch-and-cohere",
- "/page/basic-rag",
- "/page/elasticsearch-and-cohere",
- "/page/chunking-strategies",
- "/page/migrating-prompts",
- "/page/rag-with-chat-embed",
- "/page/creating-a-qa-bot",
- "/page/rag-evaluation-deep-dive",
- "/page/analysis-of-financial-forms",
- "/page/long-form-general-strategies",
- "/page/summarization-evals",
- "/page/grounded-summarization",
- "/page/fueling-generative-content",
- "/page/text-classification-using-embeddings",
- "/page/article-recommender-with-text-embeddings",
- "/page/document-parsing-for-enterprises",
- "/page/pondr",
- "/page/hello-world-meet-ai",
- "/page/topic-modeling-ai-papers",
- "/page/analyzing-hacker-news",
-];
-
-async function downloadCookbooks(pages) {
- try {
- for (const page of pages) {
- try {
- const response = await fetch(`https://docs.cohere.com${page}?json=on`, {
- method: "GET",
- redirect: "follow",
- headers: {
- accept: "application/json",
- cookie: `connect.sid=${process.env.README_SESSION_ID}`,
- "x-requested-with": "XMLHttpRequest",
- },
- });
-
- if (!response.ok) {
- throw new Error(`Failed to fetch ${page}: ${response.statusText}`);
- }
-
- const data = await response.json();
- const filename = `${page.split("/").pop()}.json`;
-
- await fs.writeFile(
- path.join(outputDir, filename),
- JSON.stringify(data, null, 2)
- );
-
- console.log(`Successfully wrote ${filename}`);
- } catch (error) {
- console.error(`Error processing ${page}:`, error);
- break;
- }
- }
- } catch (error) {
- console.error("Error setting up directory or fetching pages:", error);
- }
-}
-
-void downloadCookbooks(pages);
diff --git a/fern/pages/examples/src/sample-script/sample-script.py b/fern/snippets/sample-script/sample-script.py
similarity index 100%
rename from fern/pages/examples/src/sample-script/sample-script.py
rename to fern/snippets/sample-script/sample-script.py
diff --git a/fern/pages/examples/src/sample-webserver/index.ts b/fern/snippets/typescript/sample-webserver/index.ts
similarity index 100%
rename from fern/pages/examples/src/sample-webserver/index.ts
rename to fern/snippets/typescript/sample-webserver/index.ts
diff --git a/fern/snippets/typescript/triggers.ts b/fern/snippets/typescript/triggers.ts
new file mode 100644
index 000000000..cd63dca76
--- /dev/null
+++ b/fern/snippets/typescript/triggers.ts
@@ -0,0 +1,16 @@
+import { Composio } from "@composio/core";
+
+const composio = new Composio()
+
+await composio.triggers.subscribe(
+ triggerData => {
+ console.log('Received trigger:', triggerData);
+ },
+ {
+ // triggerId: 'ti_9q19nLNykmVZ',
+ // toolkits: ['GITHUB']
+ // userId: "sid",
+ // triggerSlug: ["GITHUB_STAR_ADDED_EVENT"]
+ authConfigId: "ac_1234567890"
+ }
+)
\ No newline at end of file
diff --git a/fern/turbo.json b/fern/turbo.json
index 73b224aca..419138924 100644
--- a/fern/turbo.json
+++ b/fern/turbo.json
@@ -1,18 +1,98 @@
{
- "$schema": "https://turbo.build/schema.json",
- "tasks": {
- "dev": {
- "with": ["examples:dev"],
- "outputs": ["dist/"]
- },
- "build": {
- "dependsOn": ["examples:build"],
- "outputs": ["dist/"]
- },
- "test": {
- "dependsOn": ["^build"],
- "outputs": ["dist/"]
- }
+ "$schema": "https://turbo.build/schema.json",
+ "extends": ["//"],
+ "tasks": {
+ "build": {
+ "dependsOn": ["api:pull", "add-og", "snippets:build", "tools:generate", "tools:uncomment", "sdkdocs"],
+ "outputs": ["pages/*.mdx", "tools/*.mdx", "pages/sdk/**"],
+ "cache": true
+ },
+
+ "dev": {
+ "dependsOn": ["tools:comment", "snippets:build"],
+ "persistent": true,
+ "cache": false
+ },
+
+ "api:pull": {
+ "outputs": ["apis/openapi.yml", "apis/openapi-mcp.json"],
+ "cache": true
+ },
+
+ "add-og": {
+ "dependsOn": ["^build"],
+ "outputs": ["pages/**/*.mdx"],
+ "inputs": ["scripts/add_og_imgs.py", "pages/**/*.mdx"],
+ "cache": true
+ },
+
+ "snippets:build": {
+ "dependsOn": ["^build"],
+ "outputs": ["pages/**"],
+ "inputs": ["scripts/build-snippets.ts", "snippets/**"],
+ "cache": true
+ },
+
+ "snippets:dev": {
+ "persistent": true,
+ "cache": false
+ },
+
+ "tools:generate": {
+ "outputs": ["tools/**"],
+ "inputs": ["generators/tool_doc_generator/**/*.py"],
+ "cache": true
+ },
+
+ "tools:comment": {
+ "outputs": ["docs.yml"],
+ "inputs": ["scripts/manage-tool-docs.py", "docs.yml"],
+ "cache": true
+ },
+
+ "tools:uncomment": {
+ "outputs": ["docs.yml"],
+ "inputs": ["scripts/manage-tool-docs.py", "docs.yml"],
+ "cache": true
+ },
+
+ "sdkdocs": {
+ "dependsOn": ["^build"],
+ "outputs": ["docs/sdk/**"],
+ "inputs": ["../packages/core/**/*.ts", "../packages/providers/**/*.ts", "typedoc.json"],
+ "cache": true
+ },
+
+ "check": {
+ "dependsOn": ["tools:comment", "snippets:build"],
+ "cache": false
+ },
+
+ "links": {
+ "dependsOn": ["tools:uncomment", "snippets:build"],
+ "cache": false
+ },
+
+ "preview": {
+ "dependsOn": ["tools:uncomment", "snippets:build"],
+ "cache": false,
+ "env": ["FERN_TOKEN"]
+ },
+
+ "publish": {
+ "dependsOn": ["tools:uncomment", "snippets:build"],
+ "cache": false,
+ "env": ["FERN_TOKEN"]
+ },
+
+ "clean": {
+ "cache": false
+ },
+
+ "compile": {
+ "outputs": ["dist/output.css"],
+ "inputs": ["assets/input.css", "tailwind.config.js"],
+ "cache": true
}
}
-
\ No newline at end of file
+}
\ No newline at end of file
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
index 1543fa81f..8c430a28c 100644
--- a/pnpm-workspace.yaml
+++ b/pnpm-workspace.yaml
@@ -6,3 +6,4 @@ packages:
- 'examples/*'
- 'fern'
- 'fern/pages/examples/*'
+ - 'fern/snippets/*'