@devries-cameron20 / composio Mirror · read-only / commits / c96f094b1
Fork 0

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, 21:00 UTC

feat(core): add session.update() for partial config updates (#3362)

## Summary - Adds `session.update()` method to both TypeScript and Python SDKs - Calls the existing `PATCH /api/v3/tool_router/session/{id}` endpoint - Accepts the same config shape as `create()` (toolkits, tools, tags, auth_configs, connected_accounts, manage_connections, workbench, multi_account, preload) - Mutates the session object in-place (preload, configVersion, warnings) ## Usage ### TypeScript ```typescript const session = await composio.create('user_123', { toolkits: ['gmail'], manageConnections: true, }); await session.update({ toolkits: { enable: ['gmail', 'github'] }, workbench: { enable: false }, }); ``` ### Python ```python session = composio.create(user_id='user_123', toolkits=['gmail']) session.update( toolkits={'enable': ['gmail', 'github']}, workbench={'enable': False}, ) ``` ## Test plan - [x] TypeScript: `tsc --noEmit` passes - [x] TypeScript: all 874 existing tests pass - [x] Python: mypy passes - [x] Python: ruff lint + format clean - [x] Python: all 82 tool_router tests pass - [ ] Manual test: create session, call `session.update()`, verify config changes 🤖 Generated with [Claude Code](https://claude.com/claude-code)

Abir Taheer committed May 7, 2026 at 03:39 UTC c96f094b15e8fcdc710aa007fbb2d7ae950f4343

No changes.