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 21, 03:37 UTC
| 1 | from composio import Composio |
| 2 | |
| 3 | composio = Composio() |
| 4 | |
| 5 | # List all toolkits |
| 6 | toolkits = composio.toolkits.get() |
| 7 | print(toolkits) |
| 8 | |
| 9 | # Get a toolkit by slug |
| 10 | toolkit = composio.toolkits.get(slug="github") |
| 11 | print(toolkit) |
| 12 | |
| 13 | # List all toolkits categories |
| 14 | categories = composio.toolkits.list_categories() |
| 15 | print(categories) |
| 16 | |
| 17 | # Authorize a user to a toolkit |
| 18 | connection_request = composio.toolkits.authorize(user_id="123", toolkit="github") |
| 19 | print(connection_request) |