Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
TypeScript agentic-aiagentsaiai-agentsaiagentsdeveloper-toolsfunction-callinggpt-4javascriptjsllmllmopsmcppythonremote-mcp-serverssetypescript
Fix examples in documentation: replace 'apps' with 'toolkits' (#11)
devin-ai-integration[bot]eb06b87586b5
diff --git a/examples/triggers/src/index.ts b/examples/triggers/src/index.tsindex 3fb5e031d..9fe9f9fd5 100644--- a/examples/triggers/src/index.ts+++ b/examples/triggers/src/index.ts@@ -28,7 +28,7 @@ async function main() {// Get available toolsconst tools = await composio.tools.get('default', {- // Specify the apps you want to use+ // Specify the toolkits you want to usetoolkits: ['gmail', 'googlecalendar'],limit: 10,});diff --git a/packages/providers/cloudflare/README.md b/packages/providers/cloudflare/README.mdindex cea71fb5a..ad7c514b2 100644--- a/packages/providers/cloudflare/README.md+++ b/packages/providers/cloudflare/README.md@@ -38,7 +38,7 @@ const composio = new Composio({// Get available toolsconst tools = await composio.tools.get('user123', {- apps: ['gmail', 'googlecalendar'],+ toolkits: ['gmail', 'googlecalendar'],limit: 10,});```@@ -63,7 +63,7 @@ export default {async fetch(request: Request, env: Env, ctx: ExecutionContext) {const ai = new Ai(env.AI);const tools = await composio.tools.get('user123', {- apps: ['gmail'],+ toolkits: ['gmail'],});const messages = [@@ -104,7 +104,7 @@ export default {async fetch(request: Request, env: Env, ctx: ExecutionContext) {const ai = new Ai(env.AI);const tools = await composio.tools.get('user123', {- apps: ['gmail'],+ toolkits: ['gmail'],});// Image analysisdiff --git a/packages/providers/langchain/README.md b/packages/providers/langchain/README.mdindex 3de5c2c37..741a1777e 100644--- a/packages/providers/langchain/README.md+++ b/packages/providers/langchain/README.md@@ -35,7 +35,7 @@ const composio = new Composio({// Get available toolsconst tools = await composio.tools.get('user123', {- apps: ['gmail', 'googlecalendar'],+ toolkits: ['gmail', 'googlecalendar'],limit: 10,});@@ -61,7 +61,7 @@ const composio = new Composio({// Get tools for the chainconst tools = await composio.tools.get('user123', {- apps: ['gmail'],+ toolkits: ['gmail'],limit: 10,});@@ -101,7 +101,7 @@ const composio = new Composio({// Get tools for the chainconst tools = await composio.tools.get('user123', {- apps: ['gmail'],+ toolkits: ['gmail'],});const model = new ChatOpenAI({@@ -144,7 +144,7 @@ const composio = new Composio({// Get tools for the chainconst tools = await composio.tools.get('user123', {- apps: ['gmail'],+ toolkits: ['gmail'],});// Setup vector store and retrieverdiff --git a/packages/providers/openai/README.md b/packages/providers/openai/README.mdindex b1dfac4fc..f14327aa2 100644--- a/packages/providers/openai/README.md+++ b/packages/providers/openai/README.md@@ -35,7 +35,7 @@ const composio = new Composio({// Get available toolsconst tools = await composio.tools.get('user123', {- apps: ['gmail', 'googlecalendar'],+ toolkits: ['gmail', 'googlecalendar'],limit: 10,});@@ -61,7 +61,7 @@ const composio = new Composio({export async function POST(req: Request) {const { messages } = await req.json();const tools = await composio.tools.get('user123', {- apps: ['gmail'],+ toolkits: ['gmail'],});const stream = await openai.chat.completions.create({@@ -95,7 +95,7 @@ const composio = new Composio({export async function POST(req: Request) {const { messages } = await req.json();const tools = await composio.tools.get('user123', {- apps: ['gmail', 'googlecalendar'],+ toolkits: ['gmail', 'googlecalendar'],});const stream = await openai.chat.completions.create({@@ -142,7 +142,7 @@ const composio = new Composio({export async function POST(req: Request) {const { messages } = await req.json();const tools = await composio.tools.get('user123', {- apps: ['gmail'],+ toolkits: ['gmail'],});const completion = await openai.chat.completions.create({@@ -172,7 +172,7 @@ const composio = new Composio({export async function POST(req: Request) {const { messages, image } = await req.json();const tools = await composio.tools.get('user123', {- apps: ['gmail'],+ toolkits: ['gmail'],});const completion = await openai.chat.completions.create({diff --git a/packages/providers/vercel/README.md b/packages/providers/vercel/README.mdindex 7f4631adf..423a7fc74 100644--- a/packages/providers/vercel/README.md+++ b/packages/providers/vercel/README.md@@ -35,7 +35,7 @@ const composio = new Composio({// Get available toolsconst tools = await composio.tools.get('user123', {- apps: ['gmail', 'googlecalendar'],+ toolkits: ['gmail', 'googlecalendar'],limit: 10,});@@ -92,7 +92,7 @@ import { openai } from '@ai-sdk/openai';export async function POST(req: Request) {const { messages } = await req.json();const tools = await composio.tools.get('user123', {- apps: ['gmail'],+ toolkits: ['gmail'],});const result = streamText({@@ -121,7 +121,7 @@ const composio = new Composio({export async function POST(req: Request) {const { messages } = await req.json();const tools = await composio.tools.get('user123', {- apps: ['gmail', 'googlecalendar'],+ toolkits: ['gmail', 'googlecalendar'],});const stream = streamText({@@ -156,7 +156,7 @@ const composio = new Composio({export async function POST(req: Request) {const { messages } = await req.json();const tools = await composio.tools.get('user123', {- apps: ['gmail'],+ toolkits: ['gmail'],});const stream = streamObject({diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex b3e659414..65970e598 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -93,7 +93,7 @@ importers:version: link:../../packages/providers/langchain'@langchain/core':specifier: ^0.3.56+ version: 0.3.56([email protected]([email protected]))'@langchain/langgraph':specifier: ^0.2.72version: 0.2.72(@langchain/[email protected]([email protected]([email protected])([email protected])))([email protected])([email protected]([email protected]))@@ -306,7 +306,7 @@ importers:dependencies:'@langchain/core':specifier: ^0.3.44+ version: 0.3.56([email protected]([email protected]))devDependencies:'@composio/core':specifier: workspace:*@@ -3038,14 +3038,14 @@ snapshots:'@jridgewell/resolve-uri': 3.1.2'@jridgewell/sourcemap-codec': 1.5.0dependencies:'@cfworker/json-schema': 4.1.1ansi-styles: 5.2.0camelcase: 6.3.0decamelize: 1.2.0js-tiktoken: 1.0.20+ langsmith: 0.3.29([email protected]([email protected]))mustache: 4.2.0p-queue: 6.6.2p-retry: 4.6.2@@ -3057,7 +3057,7 @@ snapshots:'@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])([email protected])))':dependencies:+ '@langchain/core': 0.3.56([email protected]([email protected]))uuid: 10.0.0'@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])([email protected])))([email protected])':@@ -3067,12 +3067,12 @@ snapshots:p-retry: 4.6.2uuid: 9.0.1optionalDependencies:+ '@langchain/core': 0.3.56([email protected]([email protected]))react: 19.1.0'@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])([email protected])))([email protected])([email protected]([email protected]))':dependencies:+ '@langchain/core': 0.3.56([email protected]([email protected]))'@langchain/langgraph-checkpoint': 0.0.17(@langchain/[email protected]([email protected]([email protected])([email protected])))'@langchain/langgraph-sdk': 0.0.74(@langchain/[email protected]([email protected]([email protected])([email protected])))([email protected])uuid: 10.0.0@@ -3084,7 +3084,7 @@ snapshots:'@langchain/[email protected](@langchain/[email protected]([email protected]([email protected])([email protected])))([email protected])':dependencies:+ '@langchain/core': 0.3.56([email protected]([email protected]))js-tiktoken: 1.0.20openai: 4.98.0([email protected])([email protected])zod: 3.24.4@@ -4151,7 +4151,7 @@ snapshots:dependencies:json-buffer: 3.0.1dependencies:'@types/uuid': 10.0.0chalk: 4.1.2diff --git a/scripts/create-provider.sh b/scripts/create-provider.shindex b655ec8ed..8a1d164a2 100644--- a/scripts/create-provider.sh+++ b/scripts/create-provider.sh@@ -190,7 +190,7 @@ const composio = new Composio({// Get available toolsconst tools = await composio.tools.get('user123', {- apps: ['gmail', 'googlecalendar'],+ toolkits: ['gmail', 'googlecalendar'],limit: 10,});\`\`\`@@ -211,7 +211,7 @@ const composio = new Composio({// Get toolsconst tools = await composio.tools.get('user123', {- apps: ['gmail'],+ toolkits: ['gmail'],});// Use tools with ${CAPITAL_TOOLSET_NAME}@@ -254,4 +254,4 @@ chmod +x "$TOOLSET_PATH"cd "$TOOLSET_PATH" && pnpm installecho "✨ Created new ${IS_AGENTIC:+agentic }provider at $TOOLSET_PATH"-echo "✨ Dependencies installed successfully"\ No newline at end of file+echo "✨ Dependencies installed successfully"\ No newline at end of file