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.

Move Tool Router migration guide to docs

Sushmithamallesh0cf789601ac1
diff --git a/docs/content/docs/migration-guide/index.mdx b/docs/content/docs/migration-guide/index.mdx
index 802053447..caad30d4a 100644
--- a/docs/content/docs/migration-guide/index.mdx
+++ b/docs/content/docs/migration-guide/index.mdx
@@ -17,4 +17,10 @@ description: Guides for migrating to newer versions of Composio
[View versioning migration guide →](/docs/migration-guide/toolkit-versioning)
</Accordion>
+
+ <Accordion title="Tool Router Beta to Stable">
+ Migrate from the Tool Router Beta to the stable release.
+
+ [View Tool Router migration guide →](/docs/migration-guide/tool-router-beta)
+ </Accordion>
</Accordions>
diff --git a/docs/content/docs/migration-guide/meta.json b/docs/content/docs/migration-guide/meta.json
index bf103a9c1..4bfbf7c56 100644
--- a/docs/content/docs/migration-guide/meta.json
+++ b/docs/content/docs/migration-guide/meta.json
@@ -3,6 +3,7 @@
"pages": [
"index",
"new-sdk",
- "toolkit-versioning"
+ "toolkit-versioning",
+ "tool-router-beta"
]
}
diff --git a/docs/content/docs/migration-guide/tool-router-beta.mdx b/docs/content/docs/migration-guide/tool-router-beta.mdx
new file mode 100644
index 000000000..af5385705
--- /dev/null
+++ b/docs/content/docs/migration-guide/tool-router-beta.mdx
@@ -0,0 +1,39 @@
+---
+title: Tool Router Beta to Stable Migration
+description: Migrate from Tool Router Beta to the stable release
+---
+
+This guide helps you migrate from the Tool Router Beta to the stable release.
+
+## Breaking changes
+
+### Session creation
+
+The `create` method now accepts a user ID directly instead of an options object:
+
+```typescript
+// Before (Beta)
+const session = await composio.create({ userId: 'user_123' });
+
+// After (Stable)
+const session = await composio.create('user_123');
+```
+
+### Tool fetching
+
+Tools are now fetched from the session object:
+
+```typescript
+// Before (Beta)
+const tools = await composio.tools.get('user_123', { toolkits: ['GITHUB'] });
+
+// After (Stable)
+const session = await composio.create('user_123');
+const tools = await session.tools();
+```
+
+## New features
+
+- Simplified session-based API
+- Built-in provider support for popular AI frameworks
+- Improved type safety and error handling
diff --git a/docs/content/tool-router/meta.json b/docs/content/tool-router/meta.json
index 897d09d3d..96da365e8 100644
--- a/docs/content/tool-router/meta.json
+++ b/docs/content/tool-router/meta.json
@@ -11,8 +11,6 @@
"white-labeling-authentication",
"using-custom-auth-configs",
"using-with-mcp-clients",
- "using-as-a-native-tool",
- "---Resources---",
- "migration-guide"
+ "using-as-a-native-tool"
]
}
diff --git a/docs/next.config.mjs b/docs/next.config.mjs
index 480d38300..27c51e403 100644
--- a/docs/next.config.mjs
+++ b/docs/next.config.mjs
@@ -41,6 +41,11 @@ const config = {
destination: '/docs/users-and-sessions',
permanent: true,
},
+ {
+ source: '/tool-router/migration-guide',
+ destination: '/docs/migration-guide/tool-router-beta',
+ permanent: true,
+ },
{
source: '/tool-router/authentication',
destination: '/docs/authentication',