Skip to main content

Session reuse, update, and connected accounts as arrays

Session reuse with composio.use()

composio.create() now returns a new session ID on every call, even for identical configs, for better isolation and observability. For multi-turn conversations, store the session ID and reuse it with composio.use():
Custom tools can also be attached when reusing a session. See Reusing a session and Custom tools.

Update session config with session.update()

Modify a session’s toolkits, auth configs, connected accounts, and other settings without creating a new session. Only the fields you pass are changed:
See Updating a session.

connectedAccounts accepts arrays

connectedAccounts (TypeScript) and connected_accounts (Python) now accept an array of connected account IDs per toolkit. A single string is still accepted for backwards compatibility and is automatically coerced to an array.
Only one account per toolkit is allowed when multi-account mode is disabled.

SDK versions