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.

fix python snippets

Sushmithamalleshfb25c37ed364
diff --git a/fern/pages/src/tool-router/users-and-sessions.mdx b/fern/pages/src/tool-router/users-and-sessions.mdx
index 41c6a3eca..fa50066a5 100644
--- a/fern/pages/src/tool-router/users-and-sessions.mdx
+++ b/fern/pages/src/tool-router/users-and-sessions.mdx
@@ -54,13 +54,13 @@ Keep all toolkits enabled except specific ones:
```python Python
session = composio.create(
user_id="user_123",
- toolkits={"disable": ["exa", "firecrawl"]}
+ toolkits={"disabled": ["exa", "firecrawl"]}
)
```
```typescript TypeScript
const session = await composio.create("user_123", {
- toolkits: { disable: ["exa", "firecrawl"] },
+ toolkits: { disabled: ["exa", "firecrawl"] },
});
```
</CodeGroup>
@@ -158,10 +158,7 @@ Manually authenticate a user to a toolkit outside of the chat flow.
<CodeGroup>
```python Python
-connection_request = session.authorize(
- "github",
- callback_url="https://myapp.com/callback"
-)
+connection_request = session.authorize("github")
print(connection_request.redirect_url)
@@ -189,8 +186,8 @@ List available toolkits and their connection status. You can use this to build a
```python Python
toolkits = session.toolkits()
-for toolkit in toolkits:
- status = toolkit.connected_account.id if toolkit.connected_account else "Not connected"
+for toolkit in toolkits.items:
+ status = toolkit.connection.connected_account.id if toolkit.connection.is_active else "Not connected"
print(f"{toolkit.name}: {status}")
```