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): update connected_accounts type to Dict[str, List[str]]
Matches the v3.1 wire type from composio-client 1.37.0 where connected_accounts maps toolkit slugs to arrays of account IDs. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Abir Taheer committed
May 6, 2026 at 21:46 UTC
e156769eb61fec5b64ed24e10c804082a83b12fb
1 file changed
+3
-3
python/composio/core/models/tool_router.py
+3
-3
@@ -537,7 +537,7 @@ class ToolRouter(Resource, t.Generic[TTool, TToolCollection]):
537
t.Union[bool, ToolRouterManageConnectionsConfig]
538
] = None,
539
auth_configs: t.Optional[t.Dict[str, str]] = None,
540
- connected_accounts: t.Optional[t.Dict[str, str]] = None,
540
+ connected_accounts: t.Optional[t.Dict[str, t.List[str]]] = None,
541
workbench: t.Optional[ToolRouterWorkbenchConfig] = None,
542
multi_account: t.Optional[ToolRouterMultiAccountConfig] = None,
543
preload: t.Optional[ToolRouterPreloadConfig] = None,
@@ -596,8 +596,8 @@ class ToolRouter(Resource, t.Generic[TTool, TToolCollection]):
596
Example: {'enable': True, 'callback_url': 'https://example.com/callback', 'wait_for_connections': True}
597
:param auth_configs: Optional mapping of toolkit slug to auth config ID.
598
Example: {'github': 'ac_xxx', 'slack': 'ac_yyy'}
599
- :param connected_accounts: Optional mapping of toolkit slug to connected account ID.
600
- Example: {'github': 'ca_xxx', 'slack': 'ca_yyy'}
599
+ :param connected_accounts: Optional mapping of toolkit slug to connected account IDs.
600
+ Example: {'github': ['ca_xxx'], 'slack': ['ca_yyy']}
601
:param workbench: Optional workbench configuration. Dict with:
602
- 'enable' (bool): Whether to enable the workbench entirely.
603
Defaults to True. When set to False, no code execution tools