Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Mirrored from https://github.com/Camo67/composio.git
Synced Nov 22, 17:00 UTC
fix python snippets
Sushmithamallesh committed
Dec 10, 2025 at 17:36 UTC
fb25c37ed36493bb28cf775c37848595af6dee0d
1 file changed
+5
-8
fern/pages/src/tool-router/users-and-sessions.mdx
+5
-8
@@ -54,13 +54,13 @@ Keep all toolkits enabled except specific ones:
54
```python Python
55
session = composio.create(
56
user_id="user_123",
57
- toolkits={"disable": ["exa", "firecrawl"]}
57
+ toolkits={"disabled": ["exa", "firecrawl"]}
58
)
59
```
60
61
```typescript TypeScript
62
const session = await composio.create("user_123", {
63
- toolkits: { disable: ["exa", "firecrawl"] },
63
+ toolkits: { disabled: ["exa", "firecrawl"] },
64
});
65
```
66
</CodeGroup>
@@ -158,10 +158,7 @@ Manually authenticate a user to a toolkit outside of the chat flow.
158
159
<CodeGroup>
160
```python Python
161
-connection_request = session.authorize(
162
- "github",
163
- callback_url="https://myapp.com/callback"
164
-)
161
+connection_request = session.authorize("github")
162
163
print(connection_request.redirect_url)
164
@@ -189,8 +186,8 @@ List available toolkits and their connection status. You can use this to build a
186
```python Python
187
toolkits = session.toolkits()
188
192
-for toolkit in toolkits:
193
- status = toolkit.connected_account.id if toolkit.connected_account else "Not connected"
189
+for toolkit in toolkits.items:
190
+ status = toolkit.connection.connected_account.id if toolkit.connection.is_active else "Not connected"
191
print(f"{toolkit.name}: {status}")
192
```
193