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():
- Python
- TypeScript
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:
- Python
- TypeScript
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.
- Python
- TypeScript