Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
TypeScript agentic-aiagentsaiai-agentsaiagentsdeveloper-toolsfunction-callinggpt-4javascriptjsllmllmopsmcppythonremote-mcp-serverssetypescript
fix: update connected_accounts to array type for v3.1 multi-account
Abir Taheer3fc9cfc30514
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yamlindex c21aaa477..533a17671 100644--- a/pnpm-workspace.yaml+++ b/pnpm-workspace.yaml@@ -22,7 +22,7 @@ catalog:'@clack/prompts': '^1.0.1''@cloudflare/vitest-pool-workers': ^0.9.2'@cloudflare/workers-types': ^4.20250917.0- '@composio/client': 0.1.0-alpha.69+ '@composio/client': 0.1.0-alpha.70'@effect/cli': ^0.73.2'@effect/eslint-plugin': ^0.3.2'@effect/language-service': ^0.74.0diff --git a/python/composio/core/models/tool_router.py b/python/composio/core/models/tool_router.pyindex 4430dc5c3..77bcd4f93 100644--- a/python/composio/core/models/tool_router.py+++ b/python/composio/core/models/tool_router.py@@ -597,6 +597,8 @@ class ToolRouter(Resource, t.Generic[TTool, TToolCollection])::param auth_configs: Optional mapping of toolkit slug to auth config ID.Example: {'github': 'ac_xxx', 'slack': 'ac_yyy'}:param connected_accounts: Optional mapping of toolkit slug to connected account IDs.+ Only one account per toolkit is allowed when multi-account+ mode is disabled.Example: {'github': ['ca_xxx'], 'slack': ['ca_yyy']}:param workbench: Optional workbench configuration. Dict with:- 'enable' (bool): Whether to enable the workbench entirely.diff --git a/ts/packages/core/src/types/toolRouter.types.ts b/ts/packages/core/src/types/toolRouter.types.tsindex 143b844f9..91bf44751 100644--- a/ts/packages/core/src/types/toolRouter.types.ts+++ b/ts/packages/core/src/types/toolRouter.types.ts@@ -202,9 +202,9 @@ const ToolRouterCreateSessionConfigBaseSchema = z).default({}),connectedAccounts: z- .record(z.string(), z.string())+ .record(z.string(), z.array(z.string())).describe(- 'The connected accounts to use in the tool router session. The key is the toolkit slug, the value is the connected account id.'+ 'The connected accounts to use in the tool router session. The key is the toolkit slug, the value is an array of connected account ids. Only one account per toolkit is allowed when multi-account mode is disabled.').default({}),manageConnections: z