Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
fix(docs): add twoslash setup for TS snippets in direct-to-sessions guide
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sushmithamallesh committed
Feb 19, 2026 at 19:40 UTC
90f8c4f56fd8ceb0adbec4bc880a073d2347fbeb
1 file changed
+8
docs/content/docs/migration-guide/direct-to-sessions.mdx
+8
@@ -88,6 +88,10 @@ tools = session.tools()
88
</Tab>
89
<Tab value="TypeScript">
90
```typescript
91
+import { Composio } from '@composio/core';
92
+const composio = new Composio({ apiKey: 'your_api_key' });
93
+const session = await composio.create("user_123");
94
+// ---cut---
95
// Before: manually specifying which tools to fetch
96
// const tools = await composio.tools.get("user_123", { toolkits: ["GITHUB"] });
97
@@ -124,6 +128,10 @@ connected_account = connection_request.wait_for_connection()
128
</Tab>
129
<Tab value="TypeScript">
130
```typescript
131
+import { Composio } from '@composio/core';
132
+const composio = new Composio({ apiKey: 'your_api_key' });
133
+const session = await composio.create("user_123");
134
+// ---cut---
135
// Before: manual auth flow
136
// const connectionRequest = await composio.connectedAccounts.link("user_123", "ac_your_github_config", {
137
// callbackUrl: "https://your-app.com/callback"