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.

update snippets

[email protected]2f41116d2e73
diff --git a/fern/assets/images/ask-index-docs.png b/fern/assets/images/ask-index-docs.png
new file mode 100644
index 000000000..dd737feb3
Binary files /dev/null and b/fern/assets/images/ask-index-docs.png differ
diff --git a/fern/assets/images/index-docs.png b/fern/assets/images/index-docs.png
new file mode 100644
index 000000000..9ea12dc6c
Binary files /dev/null and b/fern/assets/images/index-docs.png differ
diff --git a/fern/docs.yml b/fern/docs.yml
index 92e34a1d4..cc5e61c6b 100644
--- a/fern/docs.yml
+++ b/fern/docs.yml
@@ -199,7 +199,7 @@ navigation:
path: pages/dist/examples/gmail-filterer.mdx
slug: examples/gmail-reaper
- section: Behind the curtain
- icon: person-booth
+ icon: person-booth
skip-slug: true
contents:
- page: Tool Generator
@@ -207,7 +207,7 @@ navigation:
slug: examples/tool-generator
- tab: providers
layout:
- - section: Providers
+ - section: Supported Providers
icon: code
contents:
- page: OpenAI Provider
@@ -220,13 +220,14 @@ navigation:
path: pages/dist/providers/crewai.mdx
- page: Vercel AI SDK Provider
path: pages/dist/providers/vercel.mdx
- - page: Google ADK Provider
- path: pages/dist/providers/google-adk.mdx
- page: OpenAI Agents Provider
path: pages/dist/providers/openai-agents.mdx
- page: Mastra Provider
path: pages/dist/providers/mastra.mdx
- - page: Custom Provider
+ - section: Writing your own provider
+ icon: code
+ contents:
+ - page: TypeScript
path: pages/dist/providers/custom.mdx
- tab: tools
layout:
diff --git a/fern/package.json b/fern/package.json
index 4cbd0e29f..0ff9db350 100644
--- a/fern/package.json
+++ b/fern/package.json
@@ -28,6 +28,7 @@
"doc:new": "bun run scripts/doc-new.ts"
},
"dependencies": {
+ "@composio/anthropic": "^0.1.31",
"fern-api": "^0.51.39",
"gray-matter": "^4.0.3",
"supergateway": "^2.8.3"
@@ -36,8 +37,11 @@
"@ai-sdk/anthropic": "^1.2.12",
"@anthropic-ai/sdk": "^0.52.0",
"@composio/core": "workspace:*",
+ "@composio/langchain": "^0.1.31",
"@composio/openai": "workspace:*",
"@composio/vercel": "workspace:*",
+ "@langchain/langgraph": "^0.2.72",
+ "@langchain/openai": "^0.5.10",
"@types/convict": "^6.1.6",
"@types/glob": "^8.1.0",
"@types/node": "^20.17.57",
@@ -46,6 +50,7 @@
"ai": "^4.3.8",
"composio-core": "^0.5.39",
"hono": "^4.7.11",
+ "messages": "link:@langchain/core/messages",
"next": "^15.3.3",
"only-allow": "^1.2.1",
"openai": "^4.94.0",
diff --git a/fern/pages/src/get-started/dev-setup.mdx b/fern/pages/src/get-started/dev-setup.mdx
index 0b1339d6b..a2f3d7c81 100644
--- a/fern/pages/src/get-started/dev-setup.mdx
+++ b/fern/pages/src/get-started/dev-setup.mdx
@@ -9,16 +9,29 @@ hide-nav-links: false
This guide explains how to setup your IDE, and coding agents to help you ship faster with Composio.
+## Index docs
+Cursor can index docs which is a great way to ask questions about Composio and building with our SDKs.
+
+<Frame>
+ <img src="../../../assets/images/index-docs.png" alt="Index docs" />
+</Frame>
+
+Once indexed, you can ask questions!
+
+<Frame>
+ <img src="../../../assets/images/index-docs-question.png" alt="Index docs question" />
+</Frame>
+
## Optimise Cursor
-To optimize your experience building with Composio, you can add instructions to Cursor's system settings.
+To optimize your experience building with Composio, you can add also instructions to Cursor's system settings. We recommend adding the below prompt to the project rules.
<Frame>
<img src="../../../assets/images/cursor-settings.png" alt="Cursor settings" />
</Frame>
-Add the following to your Cursor "Rules for AI":
+You can add the following to your Cursor "Rules for AI" to help you build with Composio.
<CodeGroup>
```md TypeScript
@@ -53,7 +66,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.
@@ -85,6 +98,5 @@ 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>
diff --git a/fern/pages/src/providers/langchain.mdx b/fern/pages/src/providers/langchain.mdx
index c2ff649a9..6c95366cc 100644
--- a/fern/pages/src/providers/langchain.mdx
+++ b/fern/pages/src/providers/langchain.mdx
@@ -9,13 +9,24 @@ hide-nav-links: false
The LangChain Provider transforms Composio tools into a format compatible with LangChain's function calling capabilities.
## Setup
-```bash
+<CodeGroup>
+```bash title="Python" for="python"
pip install composio[langchain] langchain
```
+```bash title="TypeScript" for="typescript"
+npm install @composio/langchain
+```
+</CodeGroup>
## Usage
+<CodeGroup>
<SnippetCode
src="fern/snippets/providers/python/langchain-provider.py"
- title="langchain-provider.py"
-/>
\ No newline at end of file
+ title="Python"
+/>
+<SnippetCode
+ src="fern/snippets/providers/typescript/langchain.ts"
+ title="TypeScript"
+/>
+</CodeGroup>
\ No newline at end of file
diff --git a/fern/pages/src/tool-calling/after-execution-modifiers.mdx b/fern/pages/src/tool-calling/after-execution-modifiers.mdx
index 915cc2f9e..5dc9eae29 100644
--- a/fern/pages/src/tool-calling/after-execution-modifiers.mdx
+++ b/fern/pages/src/tool-calling/after-execution-modifiers.mdx
@@ -116,7 +116,7 @@ print(result)
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}
+```typescript TypeScript (Vercel) maxLines=60 wordWrap {24-27}
import { Composio } from "@composio/core";
import { VercelProvider } from "@composio/vercel";
import { generateText } from "ai";
@@ -152,7 +152,7 @@ const agenticTools = await composio.tools.get(
);
```
-```python Python maxLines=60 wordWrap
+```python Python (CrewAI) maxLines=60 wordWrap
from composio import Composio, after_execute
from composio.types import ToolExecutionResponse
from composio_crewai import CrewAIProvider
diff --git a/fern/pages/src/tool-calling/authenticating-tools.mdx b/fern/pages/src/tool-calling/authenticating-tools.mdx
index 2c8357294..d32e1a8ee 100644
--- a/fern/pages/src/tool-calling/authenticating-tools.mdx
+++ b/fern/pages/src/tool-calling/authenticating-tools.mdx
@@ -49,8 +49,9 @@ The dashboard offers a guided process for all app types.
<img src="../../../assets/images/auth-config-creation.png" />
</Frame>
</Step>
- <Step title="Create and Get ID">
- Click **"Create Integration"**. After creation, **copy the displayed starting with `ac_`**. You'll need this ID in your application code.
+ <Step title="Create and Get auth config ID">
+ Click **"Create Integration"**. After creation, **copy the displayed starting with `ac_`**. This is your auth config ID. This is _not_ a sensitive ID -- you can save it in environment variables or a database.
+ **This ID will be used to create connections to the toolkit for a given user.**
</Step>
</Steps>
@@ -89,179 +90,44 @@ If you know the required authentication fields for your toolkit (like `apiKey` f
<CodeGroup>
<SnippetCode
src="fern/snippets/tool-calling/typescript/auth-tools.ts"
- startLine={25}
- endLine={34}
+ startLine={24}
+ endLine={37}
title="TypeScript"
/>
<SnippetCode
src="fern/snippets/tool-calling/python/auth-tools.py"
- startLine={1}
- endLine={21}
+ startLine={23}
+ endLine={31}
title="Python"
/>
</CodeGroup>
-### Fetching the field name
+## Specifying auth schemes
+Composio supports a wide range of auth schemes; OAuth2, API Key, HTTP Basic and many more.
+Each app (and toolkit) has different connection options required for each auth scheme. For example;
+- Shopify requires an *API key* from each user from each user for the API Key auth scheme.
+- Airtable requires the Bearer token from each user for the *Bearer* auth scheme.
-For more complex cases where you want to dynamically discover the exact field names and handle different auth schemes programmatically, you can fetch the auth field details first.
+The auth scheme information is typed and can be configured as follows:
-Here's how to fetch the auth field names for a toolkit:
<CodeGroup>
-```typescript TypeScript maxLines=60 {9-12}
-import { Composio } from "@composio/core";
-
-const composio = new Composio();
-
-const userId = "[email protected]";
-const toolkits = await composio.toolkits.get("SERPAPI");
-
-// Destructure for easier access to authConfigDetails
-const { authConfigDetails = [] } = toolkits;
-
-// Extract required and optional field names using destructuring
-const fieldNames = authConfigDetails.flatMap(({ fields }) => {
- const { connectedAccountInitiation } = fields;
- return [
- ...(connectedAccountInitiation.required?.map(({ name }) => name) || []),
- ...(connectedAccountInitiation.optional?.map(({ name }) => name) || [])
- ];
-});
-
-console.log(fieldNames); // e.g. ["apiKey"]
-
-```
-
-```python Python maxLines=60 wordWrap
-required_fields = composio.toolkits.get_connected_account_initiation_fields(
- toolkit="NOTION",
- auth_scheme="API_KEY",
- required_only=True,
-)
-print(required_fields)
-```
-
+<SnippetCode
+ src="fern/snippets/tool-calling/typescript/auth-tools.ts"
+ startLine={38}
+ endLine={50}
+ title="TypeScript"
+/>
+<SnippetCode
+ src="fern/snippets/tool-calling/python/auth-tools.py"
+ startLine={32}
+ endLine={44}
+ title="Python"
+/>
</CodeGroup>
It might be useful to read all the optional and required auth config fields for a toolkit and optionally prompt the user for the values.
-<Accordion title="Putting it all together">
-Below is a sample script that request the user or uses environment variables to read all the required fields for a token based toolkit.
-<CodeGroup>
-```typescript TypeScript maxLines=60
-import { Composio } from "@composio/core";
-import * as readline from "readline";
-
-const composio = new Composio({
- apiKey: process.env.COMPOSIO_API_KEY,
-});
-
-const userId = "[email protected]";
-const authConfigId = "ac_k_py8Qbd17_d"; // For example, auth config id of Serp API
-
-// Flag to control whether to prompt user for input or use environment variables
-const REQUEST_USER_INPUT = true; // Set to false to use environment variables
-
-const toolkits = await composio.toolkits.get("SERPAPI");
-
-// Destructure for easier access to authConfigDetails
-const { authConfigDetails = [] } = toolkits;
-
-// Extract required and optional field names using destructuring
-const authFields = authConfigDetails.flatMap(({ fields }) => {
- const { connectedAccountInitiation } = fields;
- return [
- ...(connectedAccountInitiation.required?.map(({ name }) => name) || []),
- ...(connectedAccountInitiation.optional?.map(({ name }) => name) || []),
- ];
-});
-
-console.log("Required authentication fields:", authFields);
-
-// Function to prompt user for input
-async function promptUser(fieldName: string): Promise<string> {
- const rl = readline.createInterface({
- input: process.stdin,
- output: process.stdout,
- });
-
- return new Promise((resolve) => {
- rl.question(`Please enter value for ${fieldName}: `, (answer) => {
- rl.close();
- resolve(answer);
- });
- });
-}
-
-// Collect authentication data
-const authData: Record<string, string> = {};
-
-if (REQUEST_USER_INPUT) {
- // Request user input for each required field
- for (const fieldName of authFields) {
- authData[fieldName] = await promptUser(fieldName);
- }
-} else {
- // Read values from environment variables
- console.log("Reading values from environment variables...");
- for (const fieldName of authFields) {
- const envValue = process.env[fieldName.toUpperCase()];
- if (envValue) {
- authData[fieldName] = envValue;
- console.log(`Found ${fieldName} in environment variables`);
- } else {
- console.warn(
- `Warning: Environment variable ${fieldName.toUpperCase()} not found`
- );
- authData[fieldName] = ""; // Set empty string as fallback
- }
- }
-}
-
-console.log("Using authentication data:", authData);
-
-const connectionRequest = await composio.connectedAccounts.initiate(
- userId,
- authConfigId,
- {
- data: authData,
- }
-);
-
-console.log("Connection request ID:", connectionRequest.id);
-
-```
-```python Python maxLines=60 wordWrap
-import os
-from composio import Composio
-
-composio = Composio()
-
-# Get required fields
-required_fields = [
- field.name for field in composio.toolkits.get_connected_account_initiation_fields(
- toolkit="NOTION",
- auth_scheme="API_KEY",
- required_only=True,
- )
-]
-print("required_fields: ", required_fields)
-
-# Create a new connected account (API Key)
-connection_request = composio.connected_accounts.initiate(
- user_id="1234567890",
- auth_config_id="1234567890",
- config=auth_scheme.api_key(
- options={
- field: os.getenv(f"NOTION_{field.upper()}") for field in required_fields
- },
- ),
-)
-print(connection_request)
-```
-
-</CodeGroup>
-</Accordion>
## Redirecting users
@@ -269,13 +135,16 @@ To control where the users are redirected after they have authenticated, you can
In this case, the user will be redirected to `https://www.yourapp.com/callback` after they have authenticated.
<CodeGroup>
-```typescript maxLines=60
-const connectionRequest = await composio.connectedAccounts.initiate(
- userId,
- authConfigId,
- {
- callbackUrl: "https://www.yourapp.com/callback",
- }
-);
-```
+<SnippetCode
+ src="fern/snippets/tool-calling/typescript/callback-url.ts"
+ startLine={10}
+ endLine={20}
+ title="TypeScript"
+/>
+<SnippetCode
+ src="fern/snippets/tool-calling/python/callback-url.py"
+ startLine={10}
+ endLine={20}
+ title="Python"
+/>
</CodeGroup>
diff --git a/fern/pages/src/tool-calling/before-execution-modifiers.mdx b/fern/pages/src/tool-calling/before-execution-modifiers.mdx
index 2f0ce39e8..6282d31ab 100644
--- a/fern/pages/src/tool-calling/before-execution-modifiers.mdx
+++ b/fern/pages/src/tool-calling/before-execution-modifiers.mdx
@@ -159,7 +159,7 @@ const { text } = await generateText({
});
```
-```python Python maxLines=60 wordWrap
+```python Python (CrewAI) maxLines=60 wordWrap
from composio import Composio, before_execute
from composio.types import ToolExecuteParams
from composio_crewai import CrewAIProvider
diff --git a/fern/pages/src/tool-calling/fetching-tools.mdx b/fern/pages/src/tool-calling/fetching-tools.mdx
index b214a9cf5..e1309d25b 100644
--- a/fern/pages/src/tool-calling/fetching-tools.mdx
+++ b/fern/pages/src/tool-calling/fetching-tools.mdx
@@ -99,14 +99,14 @@ To examine the raw schema definitition of a tool to understand the input/output
<CodeGroup>
<SnippetCode
src="fern/snippets/tool-calling/typescript/raw_tools.ts"
- startLine={1}
- endLine={15}
+ startLine={5}
+ endLine={7}
title="TypeScript"
/>
<SnippetCode
src="fern/snippets/tool-calling/python/raw_tools.py"
- startLine={1}
- endLine={15}
+ startLine={5}
+ endLine={7}
title="Python"
/>
</CodeGroup>
diff --git a/fern/snippets/providers/typescript/langchain.ts b/fern/snippets/providers/typescript/langchain.ts
new file mode 100644
index 000000000..0f43c52ea
--- /dev/null
+++ b/fern/snippets/providers/typescript/langchain.ts
@@ -0,0 +1,71 @@
+import { ChatOpenAI } from '@langchain/openai';
+import { HumanMessage, AIMessage } from '@langchain/core/messages';
+import { ToolNode } from '@langchain/langgraph/prebuilt';
+import { StateGraph, MessagesAnnotation } from '@langchain/langgraph';
+import { Composio } from '@composio/core';
+import { LangchainProvider } from '@composio/langchain';
+// initiate composio
+const composio = new Composio({
+ apiKey: process.env.COMPOSIO_API_KEY,
+ provider: new LangchainProvider(),
+});
+
+// fetch the tool
+console.log(`πŸ”„ Fetching the tool...`);
+const tools = await composio.tools.get('default', 'HACKERNEWS_GET_USER');
+
+// Define the tools for the agent to use
+const toolNode = new ToolNode(tools);
+
+// Create a model and give it access to the tools
+const model = new ChatOpenAI({
+ model: 'gpt-4o-mini',
+ temperature: 0,
+}).bindTools(tools);
+
+// Define the function that determines whether to continue or not
+function shouldContinue({ messages }: typeof MessagesAnnotation.State) {
+ const lastMessage = messages[messages.length - 1] as AIMessage;
+
+ // If the LLM makes a tool call, then we route to the "tools" node
+ if (lastMessage.tool_calls?.length) {
+ return 'tools';
+ }
+ // Otherwise, we stop (reply to the user) using the special "__end__" node
+ return '__end__';
+}
+
+// Define the function that calls the model
+async function callModel(state: typeof MessagesAnnotation.State) {
+ console.log(`πŸ”„ Calling the model...`);
+ const response = await model.invoke(state.messages);
+
+ // We return a list, because this will get added to the existing list
+ return { messages: [response] };
+}
+
+// Define a new graph
+const workflow = new StateGraph(MessagesAnnotation)
+ .addNode('agent', callModel)
+ .addEdge('__start__', 'agent') // __start__ is a special name for the entrypoint
+ .addNode('tools', toolNode)
+ .addEdge('tools', 'agent')
+ .addConditionalEdges('agent', shouldContinue);
+
+// Finally, we compile it into a LangChain Runnable.
+const app = workflow.compile();
+
+// Use the agent
+const finalState = await app.invoke({
+ messages: [new HumanMessage('Find the details of the user `pg` on HackerNews')],
+});
+console.log(`βœ… Message recieved from the model`);
+console.log(finalState.messages[finalState.messages.length - 1].content);
+
+const nextState = await app.invoke({
+ // Including the messages from the previous run gives the LLM context.
+ // This way it knows we're asking about the weather in NY
+ messages: [...finalState.messages, new HumanMessage('what about haxzie')],
+});
+console.log(`βœ… Message recieved from the model`);
+console.log(nextState.messages[nextState.messages.length - 1].content);
diff --git a/fern/snippets/tool-calling/python/auth-tools.py b/fern/snippets/tool-calling/python/auth-tools.py
index 18bee4970..bc5a7f4a5 100644
--- a/fern/snippets/tool-calling/python/auth-tools.py
+++ b/fern/snippets/tool-calling/python/auth-tools.py
@@ -1,5 +1,4 @@
from composio import Composio
-from composio.types import auth_scheme
linear_auth_config_id = "ac_dqYN9oElNVlg"
user_id = "0000-1111-2222"
@@ -7,9 +6,7 @@ composio = Composio()
# Create a new connected account
connection_request = composio.connected_accounts.initiate(
- user_id=user_id,
- auth_config_id=linear_auth_config_id,
- config=auth_scheme.oauth2()
+ user_id=user_id, auth_config_id=linear_auth_config_id, config=auth_scheme.oauth2()
)
print(connection_request.redirect_url)
@@ -22,13 +19,25 @@ connected_account = composio.connected_accounts.wait_for_connection(connection_r
# Recommended for when connection_request object is destroyed
# API key based toolkit
+from composio.types import auth_scheme
serp_auth_config_id = "ac_VWmFEC55Zgv6"
# Retrieved from the user
user_api_key = "sk_1234567890"
connection_request = composio.connected_accounts.initiate(
+ user_id=user_id, auth_config_id=serp_auth_config_id, config=auth_scheme.api_key(user_api_key)
+)
+
+# Auth scheme config for Airtable Bearer
+from composio.types import auth_scheme
+airtable_auth_config_id = "ac_1234567"
+
+# Retrieved from user
+user_bearer_token = "1234567890"
+
+airtable_connection_req = composio.connected_accounts.initiate(
user_id=user_id,
- auth_config_id=serp_auth_config_id,
- config=auth_scheme.api_key(user_api_key)
+ auth_config_id=airtable_auth_config_id,
+ config=auth_scheme.bearer_token()
)
diff --git a/fern/snippets/tool-calling/python/callback-url.py b/fern/snippets/tool-calling/python/callback-url.py
new file mode 100644
index 000000000..7d7d7878e
--- /dev/null
+++ b/fern/snippets/tool-calling/python/callback-url.py
@@ -0,0 +1,16 @@
+from composio import Composio
+from composio.types import auth_scheme
+
+# Initialize Composio client
+composio = Composio()
+linear_auth_config_id = "ac_dqYN9oElNVlg"
+user_id = "0000-1111-2222"
+
+# Create a new connected account
+connection_request = composio.connected_accounts.initiate(
+ user_id=user_id, auth_config_id=linear_auth_config_id, config=auth_scheme.oauth2()
+)
+print(connection_request.redirect_url)
+
+# Wait for the connection to be established
+connected_account = connection_request.wait_for_connection()
\ No newline at end of file
diff --git a/fern/snippets/tool-calling/python/fetching-tools.py b/fern/snippets/tool-calling/python/fetching-tools.py
new file mode 100644
index 000000000..fcf9cb362
--- /dev/null
+++ b/fern/snippets/tool-calling/python/fetching-tools.py
@@ -0,0 +1,6 @@
+from composio import Composio
+
+# Initialize Composio client
+composio = Composio()
+
+# TODO: Add your code here
diff --git a/fern/snippets/tool-calling/python/raw_tools.py b/fern/snippets/tool-calling/python/raw_tools.py
index b896cd046..8f8b22e85 100644
--- a/fern/snippets/tool-calling/python/raw_tools.py
+++ b/fern/snippets/tool-calling/python/raw_tools.py
@@ -1 +1,7 @@
-from composio import Composio
\ No newline at end of file
+from composio import Composio
+
+composio = Composio()
+
+tool = composio.tools.get_raw_composio_tool_by_slug("HACKERNEWS_GET_LATEST_POSTS")
+
+print(tool.model_dump_json())
diff --git a/fern/snippets/tool-calling/typescript/auth-tools.ts b/fern/snippets/tool-calling/typescript/auth-tools.ts
index c04b0e633..956167bb3 100644
--- a/fern/snippets/tool-calling/typescript/auth-tools.ts
+++ b/fern/snippets/tool-calling/typescript/auth-tools.ts
@@ -1,27 +1,27 @@
import { Composio } from '@composio/core';
-import { AuthScheme } from '@composio/core';
const composio = new Composio();
const linearAuthConfigId = 'ac_dqYN9oElNVlg';
-const userId = '0000-1111-2222-3333';
+const userId = '1111-2222-3333';
// Initiate the OAuth connection request
-// const connRequest = await composio.connectedAccounts.initiate(userId, linearAuthConfigId);
+const connRequest = await composio.connectedAccounts.initiate(userId, linearAuthConfigId);
-// // Destructure redirectUrl for easier access
-// const { redirectUrl, id } = connRequest;
-// console.log(redirectUrl);
+// Destructure redirectUrl for easier access
+const { redirectUrl, id } = connRequest;
+console.log(redirectUrl);
-// // Wait for the connection to be established
-// await connRequest.waitForConnection();
+// Wait for the connection to be established
+await connRequest.waitForConnection();
-// // If you only have the connection request ID, you can also wait using:
-// // Recommended for when connRequest object is destroyed
-// await composio.connectedAccounts.waitForConnection(id);
+// If you only have the connection request ID, you can also wait using:
+// Recommended for when connRequest object is destroyed
+await composio.connectedAccounts.waitForConnection(id);
// API Key based toolkit
+import { AuthScheme } from '@composio/core';
const serpAuthConfigId = 'ac_VWmFEC55Zgv6';
// Retrieved from the user
@@ -34,3 +34,17 @@ const serpConnectionRequest = await composio.connectedAccounts.initiate(userId,
});
console.log(JSON.stringify(serpConnectionRequest, null, 2));
+
+// Auth scheme for Airtable Bearer
+import { AuthScheme } from '@composio/core';
+const airtableAuthConfigId = 'ac_1234567890';
+
+// Retrieved from the user
+const userBearerToken = '1234567890';
+
+const airtableConnectionRequest = await composio.connectedAccounts.initiate(
+ userId, airtableAuthConfigId, {
+ config: AuthScheme.BearerToken({
+ token: userBearerToken,
+ }),
+});
diff --git a/fern/snippets/tool-calling/typescript/callback-url.ts b/fern/snippets/tool-calling/typescript/callback-url.ts
new file mode 100644
index 000000000..77d7af026
--- /dev/null
+++ b/fern/snippets/tool-calling/typescript/callback-url.ts
@@ -0,0 +1,20 @@
+import { Composio } from '@composio/core';
+import { v4 as uuidv4 } from 'uuid';
+
+const composio = new Composio();
+const linearAuthConfigId = 'ac_dqYN9oElNVlg';
+
+const userId = uuidv4();
+
+// Initiate the OAuth connection request
+const connRequest = await composio.connectedAccounts.initiate(
+ userId,
+ linearAuthConfigId,
+ {
+ callbackUrl: 'https://www.yourapp.com/callback',
+ }
+);
+
+console.log(connRequest.redirectUrl);
+
+await connRequest.waitForConnection();
diff --git a/fern/snippets/tool-calling/typescript/fetching-tools.ts b/fern/snippets/tool-calling/typescript/fetching-tools.ts
new file mode 100644
index 000000000..e69de29bb
diff --git a/fern/snippets/tool-calling/typescript/raw_tools.ts b/fern/snippets/tool-calling/typescript/raw_tools.ts
index a522f440b..68b6f01d1 100644
--- a/fern/snippets/tool-calling/typescript/raw_tools.ts
+++ b/fern/snippets/tool-calling/typescript/raw_tools.ts
@@ -2,10 +2,6 @@ import { Composio } from '@composio/core';
const composio = new Composio();
-const tools_1 = await composio.tools.getRawComposioToolBySlug('[email protected]', 'GITHUB_CREATE_AN_ISSUE');
-console.log(tools_1);
+const tool = await composio.tools.getRawComposioToolBySlug('GITHUB_GET_OCTOCAT');
-const tools_2 = await composio.tools.getRawComposioTools('[email protected]', {
- toolkits: ['SLACK'],
-});
-console.log(tools_2);
+console.log(JSON.stringify(tool, null, 2));
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 75cd0a9da..8abf82323 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -62,6 +62,9 @@ importers:
fern:
dependencies:
+ '@composio/anthropic':
+ specifier: ^0.1.31
+ version: 0.1.31(@anthropic-ai/[email protected])(@composio/core@ts+packages+core)
fern-api:
specifier: ^0.51.39
version: 0.51.39
@@ -81,12 +84,21 @@ importers:
'@composio/core':
specifier: workspace:*
version: link:../ts/packages/core
+ '@composio/langchain':
+ specifier: ^0.1.31
+ version: 0.1.31(@composio/core@ts+packages+core)(@langchain/[email protected]([email protected]([email protected])([email protected])))
'@composio/openai':
specifier: workspace:*
version: link:../ts/packages/providers/openai
'@composio/vercel':
specifier: workspace:*
version: link:../ts/packages/providers/vercel
+ '@langchain/langgraph':
+ specifier: ^0.2.72
+ '@langchain/openai':
+ specifier: ^0.5.10
'@types/convict':
specifier: ^6.1.6
version: 6.1.6
@@ -111,11 +123,12 @@ importers:
hono:
specifier: ^4.7.11
version: 4.8.0
- version: 4.8.0
+ messages:
+ specifier: link:@langchain/core/messages
+ version: link:@langchain/core/messages
next:
specifier: ^15.3.3
only-allow:
specifier: ^1.2.1
version: 1.2.1
@@ -180,7 +193,6 @@ importers:
openai:
specifier: ^4.94.0
devDependencies:
'@types/bun':
specifier: ^1.2.9
@@ -235,7 +247,6 @@ importers:
'@google/genai':
specifier: ^1.1.0
version: 1.5.1(@modelcontextprotocol/[email protected])
- version: 1.5.1(@modelcontextprotocol/[email protected])
dotenv:
specifier: ^16.4.1
version: 16.5.0
@@ -258,7 +269,6 @@ importers:
zod-to-json-schema:
specifier: ^3.24.5
version: 3.24.5([email protected])
- version: 3.24.5([email protected])
devDependencies:
'@types/bun':
specifier: ^1.2.9
@@ -277,19 +287,19 @@ importers:
version: link:../../packages/providers/langchain
'@langchain/core':
specifier: ^0.3.56
'@langchain/langgraph':
specifier: ^0.2.72
'@langchain/openai':
specifier: ^0.5.10
dotenv:
specifier: ^16.5.0
version: 16.5.0
openai:
specifier: ^4.94.0
devDependencies:
'@types/bun':
specifier: ^1.2.9
@@ -303,7 +313,6 @@ importers:
'@ai-sdk/openai':
specifier: ^1.3.16
version: 1.3.22([email protected])
- version: 1.3.22([email protected])
'@composio/core':
specifier: workspace:*
version: link:../../packages/core
@@ -332,7 +341,6 @@ importers:
'@ai-sdk/openai':
specifier: ^1.3.16
version: 1.3.22([email protected])
- version: 1.3.22([email protected])
'@composio/core':
specifier: workspace:*
version: link:../../packages/core
@@ -342,7 +350,6 @@ importers:
ai:
specifier: ^4.3.8
devDependencies:
'@types/bun':
specifier: ^1.2.9
@@ -403,7 +410,6 @@ importers:
'@ai-sdk/openai':
specifier: ^1.3.16
version: 1.3.22([email protected])
- version: 1.3.22([email protected])
'@composio/core':
specifier: workspace:*
version: link:../../packages/core
@@ -413,7 +419,6 @@ importers:
ai:
specifier: ^4.3.8
devDependencies:
'@types/bun':
specifier: ^1.2.9
@@ -459,7 +464,6 @@ importers:
'@ai-sdk/openai':
specifier: ^1.3.16
version: 1.3.22([email protected])
- version: 1.3.22([email protected])
'@composio/core':
specifier: workspace:*
version: link:../../packages/core
@@ -469,7 +473,6 @@ importers:
ai:
specifier: ^4.3.8
dotenv:
specifier: ^16.5.0
version: 16.5.0
@@ -541,7 +544,6 @@ importers:
tsup:
specifier: ^8.5.0
tsx:
specifier: ^4.20.3
version: 4.20.3
@@ -616,7 +618,6 @@ importers:
tsup:
specifier: ^8.4.0
typescript:
specifier: ^5.8.3
version: 5.8.3
@@ -636,7 +637,6 @@ importers:
tsup:
specifier: ^8.4.0
typescript:
specifier: ^5.8.3
version: 5.8.3
@@ -656,7 +656,6 @@ importers:
tsup:
specifier: ^8.4.0
typescript:
specifier: ^5.8.3
version: 5.8.3
@@ -669,7 +668,6 @@ importers:
'@google/genai':
specifier: ^1.1.0
version: 1.5.1(@modelcontextprotocol/[email protected])
- version: 1.5.1(@modelcontextprotocol/[email protected])
devDependencies:
'@composio/core':
specifier: workspace:*
@@ -677,7 +675,6 @@ importers:
tsup:
specifier: ^8.4.0
typescript:
specifier: ^5.8.3
version: 5.8.3
@@ -694,7 +691,6 @@ importers:
tsup:
specifier: ^8.4.0
typescript:
specifier: ^5.8.3
version: 5.8.3
@@ -714,7 +710,6 @@ importers:
tsup:
specifier: ^8.4.0
typescript:
specifier: ^5.8.3
version: 5.8.3
@@ -727,7 +722,6 @@ importers:
openai:
specifier: ^4.3.8
devDependencies:
'@composio/core':
specifier: workspace:*
@@ -735,7 +729,6 @@ importers:
tsup:
specifier: ^8.4.0
typescript:
specifier: ^5.8.3
version: 5.8.3
@@ -748,7 +741,6 @@ importers:
'@openai/agents':
specifier: ^0.0.7
devDependencies:
'@composio/core':
specifier: workspace:*
@@ -756,7 +748,6 @@ importers:
tsup:
specifier: ^8.4.0
typescript:
specifier: ^5.8.3
version: 5.8.3
@@ -769,7 +760,6 @@ importers:
ai:
specifier: ^4.3.8
devDependencies:
'@composio/core':
specifier: workspace:*
@@ -777,7 +767,6 @@ importers:
tsup:
specifier: ^8.4.0
typescript:
specifier: ^5.8.3
version: 5.8.3
@@ -800,19 +789,12 @@ importers:
tsup:
specifier: ^8.4.0
vitest:
specifier: ^3.1.4
packages:
- '@ai-sdk/[email protected]':
- resolution: {integrity: sha512-YSzjlko7JvuiyQFmI9RN1tNZdEiZxc+6xld/0tq/VkJaHpEzGAb1yiNxxvmYVcjvfu/PcvCxAAYXmTYQQ63IHQ==}
- engines: {node: '>=18'}
- peerDependencies:
- zod: ^3.0.0
-
'@ai-sdk/[email protected]':
resolution: {integrity: sha512-YSzjlko7JvuiyQFmI9RN1tNZdEiZxc+6xld/0tq/VkJaHpEzGAb1yiNxxvmYVcjvfu/PcvCxAAYXmTYQQ63IHQ==}
engines: {node: '>=18'}
@@ -1072,6 +1054,12 @@ packages:
'@cloudflare/[email protected]':
resolution: {integrity: sha512-OYmVTA45rEEsOmchtltDnrG6BBaOPB7LUGKoyE8AwkfanUOc3/wwuMZ50i1jq6NKrV1TZLsKUKzrwe1NtVGOzQ==}
+ '@composio/[email protected]':
+ resolution: {integrity: sha512-MoeCOu42YqqP9rH4y0K9xte0Xc2ycRaZVJg0jLM1H7uV46AbW59sIygyC7S3jg2b96LXwMPcuW2z1EM0igpbGg==}
+ peerDependencies:
+ '@anthropic-ai/sdk': ^0.52.0
+ '@composio/core': 0.1.31
+
'@composio/[email protected]':
resolution: {integrity: sha512-iNCDSgdwfFVsjbbyZIMknMPy4uO8Xw5+MP2aI+yoQo34VXF17Fi6ZHYirrJPf8RbdoRROZTDJjC/rU18mMzC2Q==}
@@ -1081,6 +1069,12 @@ packages:
'@composio/[email protected]':
resolution: {integrity: sha512-uDOAPPkaMWM2DJLCFCW6/rxTgair6EmQ4Ojo6RDayzIl2BRUro0wGkpof4Za8sJPrmdTfSqteRMDy46xPnOYhw==}
+ '@composio/[email protected]':
+ resolution: {integrity: sha512-SKc7KgX2+CQ9tQgzwOIRKhBhmdQweyx45l6kC2MJuvLRe6hA/Rx3ejzt9NrGH/lvDnZeefhbCV/G0URycnS0cw==}
+ peerDependencies:
+ '@composio/core': 0.1.31
+ '@langchain/core': ^0.3.44
+
'@composio/[email protected]':
resolution: {integrity: sha512-IpbfST0SSs/CEv+PIf6+EL0feNuJhQyUrOHJLPge8NhyLLrCyVqvujRIPyRUUjy0NDsked/Mm5VpJmYM6OACbg==}
hasBin: true
@@ -1759,69 +1753,51 @@ packages:
cpu: [x64]
os: [win32]
- resolution: {integrity: sha512-ZkdYzBseS6UjYzz6ylVKPOK+//zLWvD6Ta+vpoye8cW11AjiQjGYVibF0xuvT4L0iJfAPfZLFidaEzAOywyOAQ==}
resolution: {integrity: sha512-ZkdYzBseS6UjYzz6ylVKPOK+//zLWvD6Ta+vpoye8cW11AjiQjGYVibF0xuvT4L0iJfAPfZLFidaEzAOywyOAQ==}
- resolution: {integrity: sha512-z0qIYTONmPRbwHWvpyrFXJd5F9YWLCsw3Sjrzj2ZvMYy9NPQMPZ1NjOJh4ojr4oQzcGYwgJKfidzehaNa1BpEg==}
resolution: {integrity: sha512-z0qIYTONmPRbwHWvpyrFXJd5F9YWLCsw3Sjrzj2ZvMYy9NPQMPZ1NjOJh4ojr4oQzcGYwgJKfidzehaNa1BpEg==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [darwin]
- resolution: {integrity: sha512-Z0FYJM8lritw5Wq+vpHYuCIzIlEMjewG2aRkc3Hi2rcbULknYL/xqfpBL23jQnCSrDUGAo/AEv0Z+s2bff9Zkw==}
resolution: {integrity: sha512-Z0FYJM8lritw5Wq+vpHYuCIzIlEMjewG2aRkc3Hi2rcbULknYL/xqfpBL23jQnCSrDUGAo/AEv0Z+s2bff9Zkw==}
engines: {node: '>= 10'}
cpu: [x64]
os: [darwin]
- resolution: {integrity: sha512-l8ZQOCCg7adwmsnFm8m5q9eIPAHdaB2F3cxhufYtVo84pymwKuWfpYTKcUiFcutJdp9xGHC+F1Uq3xnFU1B/7g==}
resolution: {integrity: sha512-l8ZQOCCg7adwmsnFm8m5q9eIPAHdaB2F3cxhufYtVo84pymwKuWfpYTKcUiFcutJdp9xGHC+F1Uq3xnFU1B/7g==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [linux]
- resolution: {integrity: sha512-wFyZ7X470YJQtpKot4xCY3gpdn8lE9nTlldG07/kJYexCUpX1piX+MBfZdvulo+t1yADFVEuzFfVHfklfEx8kw==}
resolution: {integrity: sha512-wFyZ7X470YJQtpKot4xCY3gpdn8lE9nTlldG07/kJYexCUpX1piX+MBfZdvulo+t1yADFVEuzFfVHfklfEx8kw==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [linux]
- resolution: {integrity: sha512-gEbH9rv9o7I12qPyvZNVTyP/PWKqOp8clvnoYZQiX800KkqsaJZuOXkWgMa7ANCCh/oEN2ZQheh3yH8/kWPSEg==}
resolution: {integrity: sha512-gEbH9rv9o7I12qPyvZNVTyP/PWKqOp8clvnoYZQiX800KkqsaJZuOXkWgMa7ANCCh/oEN2ZQheh3yH8/kWPSEg==}
engines: {node: '>= 10'}
cpu: [x64]
os: [linux]
- resolution: {integrity: sha512-Cf8sr0ufuC/nu/yQ76AnarbSAXcwG/wj+1xFPNbyNo8ltA6kw5d5YqO8kQuwVIxk13SBdtgXrNyom3ZosHAy4A==}
resolution: {integrity: sha512-Cf8sr0ufuC/nu/yQ76AnarbSAXcwG/wj+1xFPNbyNo8ltA6kw5d5YqO8kQuwVIxk13SBdtgXrNyom3ZosHAy4A==}
engines: {node: '>= 10'}
cpu: [x64]
os: [linux]
- resolution: {integrity: sha512-ay5+qADDN3rwRbRpEhTOreOn1OyJIXS60tg9WMYTWCy3fB6rGoyjLVxc4dR9PYjEdR2iDYsaF5h03NA+XuYPQQ==}
resolution: {integrity: sha512-ay5+qADDN3rwRbRpEhTOreOn1OyJIXS60tg9WMYTWCy3fB6rGoyjLVxc4dR9PYjEdR2iDYsaF5h03NA+XuYPQQ==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [win32]
- resolution: {integrity: sha512-4kDt31Bc9DGyYs41FTL1/kNpDeHyha2TC0j5sRRoKCyrhNcfZ/nRQkAUlF27mETwm8QyHqIjHJitfcza2Iykfg==}
resolution: {integrity: sha512-4kDt31Bc9DGyYs41FTL1/kNpDeHyha2TC0j5sRRoKCyrhNcfZ/nRQkAUlF27mETwm8QyHqIjHJitfcza2Iykfg==}
engines: {node: '>= 10'}
@@ -3985,8 +3961,6 @@ packages:
zod-openapi:
optional: true
- resolution: {integrity: sha512-NoiHrqJxoe1MYXqW+/0/Q4NCizKj2Ivm4KmX8mOSBtw9UJ7KYaOGKkO7csIwO5UlZpfvVRdcgiMb0GGyjEjtcw==}
resolution: {integrity: sha512-NoiHrqJxoe1MYXqW+/0/Q4NCizKj2Ivm4KmX8mOSBtw9UJ7KYaOGKkO7csIwO5UlZpfvVRdcgiMb0GGyjEjtcw==}
engines: {node: '>=16.9.0'}
@@ -4291,14 +4265,6 @@ packages:
openai:
optional: true
- resolution: {integrity: sha512-imNIaBL6+ElE5eMzNHYwFxo6W/6rHlqcaUjCYoIeGdCYWlARxE3CTGKul5DJnaUgGP2CTLFeNXyvRx5HWC/4KQ==}
- peerDependencies:
- openai: '*'
- peerDependenciesMeta:
- openai:
- optional: true
-
resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==}
engines: {node: '>= 0.8.0'}
@@ -4518,8 +4484,6 @@ packages:
resolution: {integrity: sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==}
engines: {node: '>= 0.6'}
- resolution: {integrity: sha512-mHKd50C+mCjam/gcnwqL1T1vPx/XQNFlXqFIVdgQdVAFY9iIQtY0IfaVflEYzKiqjeA7B0cYYMaCrmAYFjs4rA==}
resolution: {integrity: sha512-mHKd50C+mCjam/gcnwqL1T1vPx/XQNFlXqFIVdgQdVAFY9iIQtY0IfaVflEYzKiqjeA7B0cYYMaCrmAYFjs4rA==}
engines: {node: ^18.18.0 || ^19.8.0 || >= 20.0.0}
@@ -4869,8 +4833,6 @@ packages:
resolution: {integrity: sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==}
engines: {node: ^10 || ^12 || >=14}
- resolution: {integrity: sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==}
resolution: {integrity: sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==}
engines: {node: ^10 || ^12 || >=14}
@@ -5783,45 +5745,31 @@ packages:
snapshots:
dependencies:
'@ai-sdk/provider': 1.1.3
'@ai-sdk/provider-utils': 2.2.8([email protected])
zod: 3.25.67
- dependencies:
- '@ai-sdk/provider': 1.1.3
- '@ai-sdk/provider-utils': 2.2.8([email protected])
- zod: 3.25.67
- '@ai-sdk/provider-utils': 2.2.8([email protected])
- zod: 3.25.67
-
dependencies:
'@ai-sdk/provider': 1.1.3
'@ai-sdk/provider-utils': 2.2.8([email protected])
zod: 3.25.67
dependencies:
'@ai-sdk/provider': 1.1.3
nanoid: 3.3.11
secure-json-parse: 2.7.0
zod: 3.25.67
- zod: 3.25.67
'@ai-sdk/[email protected]':
dependencies:
json-schema: 0.4.0
dependencies:
- '@ai-sdk/provider-utils': 2.2.8([email protected])
- '@ai-sdk/ui-utils': 1.2.11([email protected])
'@ai-sdk/provider-utils': 2.2.8([email protected])
'@ai-sdk/ui-utils': 1.2.11([email protected])
react: 18.3.1
@@ -5829,18 +5777,13 @@ snapshots:
throttleit: 2.1.0
optionalDependencies:
zod: 3.25.67
- zod: 3.25.67
dependencies:
'@ai-sdk/provider': 1.1.3
'@ai-sdk/provider-utils': 2.2.8([email protected])
zod: 3.25.67
zod-to-json-schema: 3.24.5([email protected])
- '@ai-sdk/provider-utils': 2.2.8([email protected])
- zod: 3.25.67
- zod-to-json-schema: 3.24.5([email protected])
'@alloc/[email protected]': {}
@@ -6459,6 +6402,11 @@ snapshots:
'@cloudflare/[email protected]': {}
+ '@composio/[email protected](@anthropic-ai/[email protected])(@composio/core@ts+packages+core)':
+ dependencies:
+ '@anthropic-ai/sdk': 0.52.0
+ '@composio/core': link:ts/packages/core
+
'@composio/[email protected]': {}
'@composio/[email protected]': {}
@@ -6468,6 +6416,11 @@ snapshots:
'@types/json-schema': 7.0.15
zod: 3.25.67
+ '@composio/[email protected](@composio/core@ts+packages+core)(@langchain/[email protected]([email protected]([email protected])([email protected])))':
+ dependencies:
+ '@composio/core': link:ts/packages/core
+
'@composio/[email protected]': {}
'@dprint/[email protected]': {}
@@ -6742,7 +6695,6 @@ snapshots:
'@shikijs/types': 3.6.0
'@shikijs/vscode-textmate': 10.0.2
- '@google/[email protected](@modelcontextprotocol/[email protected])':
'@google/[email protected](@modelcontextprotocol/[email protected])':
dependencies:
google-auth-library: 9.15.1
@@ -6751,7 +6703,6 @@ snapshots:
zod-to-json-schema: 3.24.5([email protected])
optionalDependencies:
'@modelcontextprotocol/sdk': 1.13.0
- '@modelcontextprotocol/sdk': 1.13.0
transitivePeerDependencies:
- bufferutil
- encoding
@@ -6887,7 +6838,6 @@ snapshots:
'@inquirer/type': 2.0.0
'@types/mute-stream': 0.0.4
'@types/node': 22.15.32
- '@types/node': 22.15.32
'@types/wrap-ansi': 3.0.0
ansi-escapes: 4.3.2
cli-width: 4.1.0
@@ -7016,23 +6966,6 @@ snapshots:
transitivePeerDependencies:
- openai
- dependencies:
- '@cfworker/json-schema': 4.1.1
- ansi-styles: 5.2.0
- camelcase: 6.3.0
- decamelize: 1.2.0
- js-tiktoken: 1.0.20
- mustache: 4.2.0
- p-queue: 6.6.2
- p-retry: 4.6.2
- uuid: 10.0.0
- zod: 3.25.67
- zod-to-json-schema: 3.24.5([email protected])
- transitivePeerDependencies:
- - openai
-
dependencies:
'@cfworker/json-schema': 4.1.1
@@ -7050,43 +6983,33 @@ snapshots:
transitivePeerDependencies:
- openai
dependencies:
uuid: 10.0.0
dependencies:
'@types/json-schema': 7.0.15
p-queue: 6.6.2
p-retry: 4.6.2
uuid: 9.0.1
optionalDependencies:
react: 18.3.1
dependencies:
- '@langchain/langgraph-checkpoint': 0.0.18(@langchain/[email protected]([email protected]([email protected])([email protected])))
+ '@langchain/langgraph-checkpoint': 0.0.18(@langchain/[email protected]([email protected]([email protected])([email protected])))
uuid: 10.0.0
zod: 3.25.67
optionalDependencies:
- zod-to-json-schema: 3.24.5([email protected])
+ zod-to-json-schema: 3.24.5([email protected])
transitivePeerDependencies:
- react
- dependencies:
- js-tiktoken: 1.0.20
- zod: 3.25.32
- transitivePeerDependencies:
- - encoding
- - ws
-
dependencies:
@@ -7124,9 +7047,6 @@ snapshots:
'@ai-sdk/provider-utils': 2.2.8([email protected])
'@ai-sdk/ui-utils': 1.2.11([email protected])
- '@ai-sdk/provider-utils': 2.2.8([email protected])
- '@ai-sdk/ui-utils': 1.2.11([email protected])
'@opentelemetry/api': 1.9.0
'@opentelemetry/auto-instrumentations-node': 0.59.0(@opentelemetry/[email protected])(@opentelemetry/[email protected](@opentelemetry/[email protected]))
'@opentelemetry/core': 2.0.1(@opentelemetry/[email protected])
@@ -7142,14 +7062,11 @@ snapshots:
'@opentelemetry/semantic-conventions': 1.34.0
'@sindresorhus/slugify': 2.2.1
cohere-ai: 7.17.1
date-fns: 3.6.0
dotenv: 16.5.0
hono: 4.8.0
- hono: 4.8.0
json-schema: 0.4.0
json-schema-to-zod: 2.6.1
pino: 9.7.0
@@ -7158,7 +7075,6 @@ snapshots:
sift: 17.1.3
xstate: 5.19.4
zod: 3.25.67
- zod: 3.25.67
transitivePeerDependencies:
- '@hono/arktype-validator'
- '@hono/effect-validator'
@@ -7185,25 +7101,19 @@ snapshots:
exit-hook: 4.0.0
fast-deep-equal: 3.1.3
hono: 4.8.0
- hono: 4.8.0
uuid: 11.1.0
zod: 3.25.67
- zod: 3.25.67
zod-from-json-schema: 0.0.5
transitivePeerDependencies:
- supports-color
dependencies:
json-schema: 0.4.0
zod: 3.25.67
- zod: 3.25.67
zod-from-json-schema: 0.0.5
zod-to-json-schema: 3.24.5([email protected])
- zod-to-json-schema: 3.24.5([email protected])
'@modelcontextprotocol/[email protected]':
dependencies:
@@ -7240,37 +7150,28 @@ snapshots:
optional: true
'@next/[email protected]': {}
- '@next/[email protected]': {}
optional: true
optional: true
optional: true
optional: true
optional: true
optional: true
optional: true
optional: true
@@ -7288,7 +7189,6 @@ snapshots:
dependencies:
- '@openai/zod': [email protected]
'@openai/zod': [email protected]
debug: 4.4.1
@@ -8547,7 +8447,6 @@ snapshots:
dependencies:
'@types/node': 24.0.3
- '@types/node': 24.0.3
dependencies:
@@ -8556,7 +8455,6 @@ snapshots:
dependencies:
'@types/node': 24.0.3
- '@types/node': 24.0.3
dependencies:
@@ -8584,7 +8482,6 @@ snapshots:
dependencies:
'@types/node': 24.0.3
- '@types/node': 24.0.3
'@types/[email protected]': {}
@@ -8595,7 +8492,6 @@ snapshots:
dependencies:
'@types/node': 24.0.3
- '@types/node': 24.0.3
dependencies:
@@ -8623,7 +8519,6 @@ snapshots:
dependencies:
'@types/node': 24.0.3
- '@types/node': 24.0.3
dependencies:
@@ -8651,7 +8546,6 @@ snapshots:
dependencies:
'@types/node': 24.0.3
- '@types/node': 24.0.3
'@types/[email protected]': {}
@@ -8664,7 +8558,6 @@ snapshots:
dependencies:
'@types/node': 24.0.3
- '@types/node': 24.0.3
dependencies:
@@ -8823,7 +8716,7 @@ snapshots:
sirv: 3.0.1
tinyglobby: 0.2.14
tinyrainbow: 2.0.0
'@vitest/[email protected]':
dependencies:
@@ -8861,20 +8754,15 @@ snapshots:
dependencies:
humanize-ms: 1.2.1
dependencies:
'@ai-sdk/provider': 1.1.3
'@ai-sdk/provider-utils': 2.2.8([email protected])
'@ai-sdk/react': 1.2.12([email protected])([email protected])
'@ai-sdk/ui-utils': 1.2.11([email protected])
- '@ai-sdk/provider-utils': 2.2.8([email protected])
- '@ai-sdk/react': 1.2.12([email protected])([email protected])
- '@ai-sdk/ui-utils': 1.2.11([email protected])
'@opentelemetry/api': 1.9.0
jsondiffpatch: 0.6.0
zod: 3.25.67
- zod: 3.25.67
optionalDependencies:
react: 18.3.1
@@ -9010,7 +8898,6 @@ snapshots:
dependencies:
'@types/node': 24.0.3
- '@types/node': 24.0.3
dependencies:
@@ -9186,8 +9073,6 @@ snapshots:
uuid: 10.0.0
zod: 3.25.67
zod-to-json-schema: 3.24.5([email protected])
- zod: 3.25.67
- zod-to-json-schema: 3.24.5([email protected])
transitivePeerDependencies:
- debug
@@ -9876,7 +9761,6 @@ snapshots:
dependencies:
json-schema-walker: 2.0.0
@@ -9885,11 +9769,8 @@ snapshots:
effect: 3.16.8
hono: 4.8.0
zod: 3.25.67
- hono: 4.8.0
- zod: 3.25.67
dependencies:
@@ -10105,7 +9986,6 @@ snapshots:
uuid: 10.0.0
yaml: 2.8.0
zod: 3.25.67
- zod: 3.25.67
optionalDependencies:
axios: 1.10.0
transitivePeerDependencies:
@@ -10125,18 +10005,6 @@ snapshots:
optionalDependencies:
- dependencies:
- '@types/uuid': 10.0.0
- chalk: 4.1.2
- console-table-printer: 2.14.3
- p-queue: 6.6.2
- p-retry: 4.6.2
- semver: 7.7.2
- uuid: 10.0.0
- optionalDependencies:
-
dependencies:
'@types/uuid': 10.0.0
@@ -10347,10 +10215,8 @@ snapshots:
dependencies:
- '@next/env': 15.3.4
'@next/env': 15.3.4
'@swc/counter': 0.1.3
'@swc/helpers': 0.5.15
@@ -10361,14 +10227,6 @@ snapshots:
react-dom: 19.1.0([email protected])
styled-jsx: 5.1.6([email protected])
optionalDependencies:
- '@next/swc-darwin-arm64': 15.3.4
- '@next/swc-darwin-x64': 15.3.4
- '@next/swc-linux-arm64-gnu': 15.3.4
- '@next/swc-linux-arm64-musl': 15.3.4
- '@next/swc-linux-x64-gnu': 15.3.4
- '@next/swc-linux-x64-musl': 15.3.4
- '@next/swc-win32-arm64-msvc': 15.3.4
- '@next/swc-win32-x64-msvc': 15.3.4
'@next/swc-darwin-arm64': 15.3.4
'@next/swc-darwin-x64': 15.3.4
'@next/swc-linux-arm64-gnu': 15.3.4
@@ -10637,30 +10495,24 @@ snapshots:
mlly: 1.7.4
pathe: 2.0.3
dependencies:
- postcss: 8.5.6
postcss: 8.5.6
postcss-value-parser: 4.2.0
read-cache: 1.0.0
resolve: 1.22.10
dependencies:
camelcase-css: 2.0.1
postcss: 8.5.6
- postcss: 8.5.6
dependencies:
lilconfig: 3.1.3
yaml: 2.8.0
optionalDependencies:
postcss: 8.5.6
- postcss: 8.5.6
dependencies:
@@ -10671,10 +10523,8 @@ snapshots:
tsx: 4.20.3
yaml: 2.8.0
dependencies:
- postcss: 8.5.6
postcss: 8.5.6
postcss-selector-parser: 6.1.2
@@ -10691,7 +10541,6 @@ snapshots:
picocolors: 1.1.1
source-map-js: 1.2.1
dependencies:
nanoid: 3.3.11
@@ -10735,7 +10584,6 @@ snapshots:
'@protobufjs/pool': 1.1.0
'@protobufjs/utf8': 1.1.0
'@types/node': 24.0.3
- '@types/node': 24.0.3
long: 5.3.2
@@ -11180,7 +11028,6 @@ snapshots:
dependencies:
- '@modelcontextprotocol/sdk': 1.13.0
'@modelcontextprotocol/sdk': 1.13.0
body-parser: 1.20.3
cors: 2.8.5
@@ -11189,7 +11036,6 @@ snapshots:
ws: 8.18.2
yargs: 17.7.2
zod: 3.25.67
- zod: 3.25.67
transitivePeerDependencies:
- bufferutil
- supports-color
@@ -11232,11 +11078,6 @@ snapshots:
postcss-js: 4.0.1([email protected])
postcss-load-config: 4.0.2([email protected])
postcss-nested: 6.2.0([email protected])
- postcss: 8.5.6
- postcss-import: 15.1.0([email protected])
- postcss-js: 4.0.1([email protected])
- postcss-load-config: 4.0.2([email protected])
- postcss-nested: 6.2.0([email protected])
postcss-selector-parser: 6.1.2
resolve: 1.22.10
sucrase: 3.35.0
@@ -11335,7 +11176,6 @@ snapshots:
tinyglobby: 0.2.14
tree-kill: 1.2.2
optionalDependencies:
- postcss: 8.5.6
postcss: 8.5.6
typescript: 5.8.3
transitivePeerDependencies:
@@ -11541,7 +11381,6 @@ snapshots:
fdir: 6.4.6([email protected])
picomatch: 4.0.2
postcss: 8.5.6
- postcss: 8.5.6
rollup: 4.43.0
tinyglobby: 0.2.14
optionalDependencies:
@@ -11557,7 +11396,6 @@ snapshots:
fdir: 6.4.6([email protected])
picomatch: 4.0.2
postcss: 8.5.6
- postcss: 8.5.6
rollup: 4.43.0
tinyglobby: 0.2.14
optionalDependencies:
@@ -11573,7 +11411,6 @@ snapshots:
fdir: 6.4.6([email protected])
picomatch: 4.0.2
postcss: 8.5.6
- postcss: 8.5.6
rollup: 4.43.0
tinyglobby: 0.2.14
optionalDependencies:
@@ -11796,12 +11633,6 @@ snapshots:
dependencies:
zod: 3.25.67
- zod: 3.25.67
-
- dependencies:
- zod: 3.25.32
- optional: true
dependencies: