Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Chore: Update python deps, update types and method signatures (#2135)
Musthaq Ahamad committed
Oct 31, 2025 at 17:17 UTC
1ce11707a863eccfac018af0ce8ff1027a049cc0
9 files changed
+65
-27
python/composio/core/models/connected_accounts.py
+1
@@ -328,6 +328,7 @@ class ConnectedAccounts:
328
self.list = self._client.connected_accounts.list
329
self.delete = self._client.connected_accounts.delete
330
self.update_status = self._client.connected_accounts.update_status
331
+ self.refresh = self._client.connected_accounts.refresh
332
self.enable = functools.partial(
333
self._client.connected_accounts.update_status,
334
enabled=True,
python/composio/core/models/custom_tools.py
+1
@@ -103,6 +103,7 @@ class CustomTool:
103
toolkit=tool_list_response.ItemDeprecatedToolkit(logo=str()),
104
is_deprecated=False,
105
),
106
+ is_deprecated=False,
107
no_auth=False,
108
tags=[],
109
)
python/composio/core/models/mcp.py
+10
-10
@@ -126,11 +126,11 @@ class MCP(Resource):
126
... toolkits=[
127
... {
128
... 'toolkit': 'github',
129
- ... 'auth_config': 'ac_xyz',
129
+ ... 'auth_config_id': 'ac_xyz',
130
... },
131
... {
132
... 'toolkit': 'slack',
133
- ... 'auth_config': 'ac_abc',
133
+ ... 'auth_config_id': 'ac_abc',
134
... },
135
... ],
136
... allowed_tools=['GITHUB_CREATE_ISSUE', 'GITHUB_LIST_REPOS', 'SLACK_SEND_MESSAGE'],
@@ -183,10 +183,10 @@ class MCP(Resource):
183
toolkit_names.append(toolkit_config["toolkit"])
184
185
if (
186
- "auth_config" in toolkit_config
187
- and toolkit_config["auth_config"] not in auth_config_ids
186
+ "auth_config_id" in toolkit_config
187
+ and toolkit_config["auth_config_id"] not in auth_config_ids
188
):
189
- auth_config_ids.append(toolkit_config["auth_config"])
189
+ auth_config_ids.append(toolkit_config["auth_config_id"])
190
191
# Use the allowed_tools parameter instead of individual toolkit configs
192
custom_tools = none_to_omit(allowed_tools)
@@ -323,8 +323,8 @@ class MCP(Resource):
323
>>> server_with_auth = composio.experimental.mcp.update(
324
... 'mcp_12345',
325
... toolkits=[
326
- ... {'toolkit': 'github', 'auth_config': 'auth_abc123'},
327
- ... {'toolkit': 'slack', 'auth_config': 'auth_def456'}
326
+ ... {'toolkit': 'github', 'auth_config_id': 'auth_abc123'},
327
+ ... {'toolkit': 'slack', 'auth_config_id': 'auth_def456'}
328
... ],
329
... allowed_tools=['GITHUB_CREATE_ISSUE', 'SLACK_SEND_MESSAGE'],
330
... manually_manage_connections=False
@@ -361,10 +361,10 @@ class MCP(Resource):
361
toolkit_names.append(toolkit_config["toolkit"])
362
363
if (
364
- "auth_config" in toolkit_config
365
- and toolkit_config["auth_config"] not in auth_config_ids
364
+ "auth_config_id" in toolkit_config
365
+ and toolkit_config["auth_config_id"] not in auth_config_ids
366
):
367
- auth_config_ids.append(toolkit_config["auth_config"])
367
+ auth_config_ids.append(toolkit_config["auth_config_id"])
368
369
update_params["toolkits"] = toolkit_names
370
update_params["auth_config_ids"] = auth_config_ids
python/composio/core/models/triggers.py
+31
-2
@@ -20,8 +20,10 @@ from composio.client import HttpClient
20
from composio.client.types import trigger_instance_upsert_response
21
from composio.core.models.base import Resource
22
from composio.core.models.internal import Internal
23
+from composio.core.types import ToolkitVersionParam
24
from composio.exceptions import ComposioSDKTimeoutError
25
from composio.utils.logging import WithLogger
26
+from composio.utils.pydantic import none_to_omit
27
28
PUSHER_AUTH_URL = "{base_url}/api/v3/internal/sdk/realtime/auth?source=python"
29
@@ -629,16 +631,21 @@ class Triggers(Resource):
631
disable: t.Callable
632
"""Disables a trigger given its id"""
633
632
- def __init__(self, client: HttpClient):
634
+ def __init__(
635
+ self,
636
+ client: HttpClient,
637
+ toolkit_versions: t.Optional[ToolkitVersionParam] = None,
638
+ ):
639
"""
640
Initialize the triggers resource.
641
642
:param client: The client to use for the triggers resource.
643
+ :param toolkit_versions: The versions of the toolkits to use. Defaults to 'latest' if not provided.
644
"""
645
self._client = client
646
+ self._toolkit_versions = toolkit_versions
647
self.list_enum = self._client.triggers_types.retrieve_enum
648
self.get_type = self._client.triggers_types.retrieve
641
- self.list = self._client.triggers_types.list
649
self.delete = self._client.trigger_instances.manage.delete
650
self.enable = functools.partial(
651
self._client.trigger_instances.manage.update,
@@ -681,6 +688,28 @@ class Triggers(Resource):
688
page=page if page is not None else omit,
689
)
690
691
+ def list(
692
+ self,
693
+ *,
694
+ cursor: t.Optional[str] = None,
695
+ limit: t.Optional[int] = None,
696
+ toolkit_slugs: t.Optional[list[str]] = None,
697
+ ):
698
+ """
699
+ List all the trigger types.
700
+
701
+ :param cursor: The cursor for pagination
702
+ :param limit: The maximum number of trigger types to return
703
+ :param toolkit_slugs: Filter by toolkit slugs
704
+ :return: The list of trigger types
705
+ """
706
+ return self._client.triggers_types.list(
707
+ cursor=none_to_omit(cursor),
708
+ limit=none_to_omit(limit),
709
+ toolkit_slugs=none_to_omit(toolkit_slugs),
710
+ toolkit_versions=none_to_omit(self._toolkit_versions),
711
+ )
712
+
713
@t.overload
714
def create(
715
self,
python/composio/sdk.py
+1
-1
@@ -101,7 +101,7 @@ class Composio(t.Generic[TProvider], WithLogger):
101
toolkit_versions=toolkit_versions,
102
)
103
self.toolkits = Toolkits(client=self._client)
104
- self.triggers = Triggers(client=self._client)
104
+ self.triggers = Triggers(client=self._client, toolkit_versions=toolkit_versions)
105
self.auth_configs = AuthConfigs(client=self._client)
106
self.connected_accounts = ConnectedAccounts(client=self._client)
107
self.mcp = MCP(client=self._client)
python/pyproject.toml
+1
-1
@@ -7,7 +7,7 @@ requires-python = ">=3.10,<4"
7
dependencies = [
8
"pysher>=1.0.8",
9
"pydantic>=2.6.4",
10
- "composio-client>=1.10.0",
10
+ "composio-client>=1.11.0",
11
"typing-extensions>=4.0.0",
12
"openai",
13
]
python/tests/test_tool_execution.py
+1
@@ -42,6 +42,7 @@ class TestToolExecution:
42
toolkit=tool_list_response.ItemDeprecatedToolkit(logo=""),
43
is_deprecated=False,
44
),
45
+ is_deprecated=False,
46
no_auth=False,
47
tags=[],
48
)
ts/packages/core/src/types/connectedAccounts.types.ts
+6
@@ -73,7 +73,13 @@ export type ConnectedAccountAuthConfig = z.infer<typeof ConnectedAccountAuthConf
73
export const ConnectedAccountRetrieveResponseSchema = z.object({
74
id: z.string(),
75
authConfig: ConnectedAccountAuthConfigSchema,
76
+ /**
77
+ * @deprecated use connectedAccount.state instead
78
+ */
79
data: z.record(z.string(), z.unknown()).optional(),
80
+ /**
81
+ * @deprecated use connectedAccount.state instead
82
+ */
83
params: z.record(z.string(), z.unknown()).optional(),
84
status: ConnectedAccountStatusSchema,
85
statusReason: z.string().nullable(),
uv.lock
+13
-13
@@ -468,7 +468,7 @@ wheels = [
468
469
[[package]]
470
name = "composio"
471
-version = "0.8.19"
471
+version = "0.9.0"
472
source = { virtual = "python" }
473
dependencies = [
474
{ name = "composio-client" },
@@ -494,7 +494,7 @@ dev = [
494
495
[package.metadata]
496
requires-dist = [
497
- { name = "composio-client", specifier = ">=1.10.0" },
497
+ { name = "composio-client", specifier = ">=1.11.0" },
498
{ name = "openai" },
499
{ name = "pydantic", specifier = ">=2.6.4" },
500
{ name = "pysher", specifier = ">=1.0.8" },
@@ -517,7 +517,7 @@ dev = [
517
518
[[package]]
519
name = "composio-anthropic"
520
-version = "0.8.19"
520
+version = "0.9.0"
521
source = { virtual = "python/providers/anthropic" }
522
dependencies = [
523
{ name = "anthropic" },
@@ -532,7 +532,7 @@ requires-dist = [
532
533
[[package]]
534
name = "composio-client"
535
-version = "1.10.0"
535
+version = "1.11.0"
536
source = { registry = "https://pypi.org/simple" }
537
dependencies = [
538
{ name = "anyio" },
@@ -542,14 +542,14 @@ dependencies = [
542
{ name = "sniffio" },
543
{ name = "typing-extensions" },
544
]
545
-sdist = { url = "https://files.pythonhosted.org/packages/63/a7/edcc211529d312769e7e3d0fb01487878b327df4d07f6ea29a0270b5a88c/composio_client-1.10.0.tar.gz", hash = "sha256:99778a550248ab3ff30b4d3bd18b8c2679ea4113d524a3d6261dd78ec925635f", size = 165864 }
545
+sdist = { url = "https://files.pythonhosted.org/packages/f7/00/743270d00550134968c6189ea18d66655c7685970876321bc99e8ebcaaad/composio_client-1.11.0.tar.gz", hash = "sha256:1da2e817f24b6d51ae99ab8f54e2d2aa7286e9af811b21886241998589f3e533", size = 169798 }
546
wheels = [
547
- { url = "https://files.pythonhosted.org/packages/c5/2f/a645beceb4d1f3d6aefcc661edbf63692f9567b8d540ee693b5dbb395f0c/composio_client-1.10.0-py3-none-any.whl", hash = "sha256:60301b004d13d79366e82102d73dfa55daf27770f7f8afcc34d129ec43556a8a", size = 176675 },
547
+ { url = "https://files.pythonhosted.org/packages/d3/11/d25cf9981d6b0697f4e7ad2e467563960ad84be31b3b034ca7d85cb2f470/composio_client-1.11.0-py3-none-any.whl", hash = "sha256:0491a008394d1e36d936d3b8d75341a35334629b23394fa13ef2adda08ae203c", size = 179628 },
548
]
549
550
[[package]]
551
name = "composio-crewai"
552
-version = "0.8.19"
552
+version = "0.9.0"
553
source = { virtual = "python/providers/crewai" }
554
dependencies = [
555
{ name = "composio" },
@@ -564,7 +564,7 @@ requires-dist = [
564
565
[[package]]
566
name = "composio-gemini"
567
-version = "0.8.19"
567
+version = "0.9.0"
568
source = { virtual = "python/providers/gemini" }
569
dependencies = [
570
{ name = "composio" },
@@ -579,7 +579,7 @@ requires-dist = [
579
580
[[package]]
581
name = "composio-google"
582
-version = "0.8.19"
582
+version = "0.9.0"
583
source = { virtual = "python/providers/google" }
584
dependencies = [
585
{ name = "composio" },
@@ -594,7 +594,7 @@ requires-dist = [
594
595
[[package]]
596
name = "composio-google-adk"
597
-version = "0.8.19"
597
+version = "0.9.0"
598
source = { virtual = "python/providers/google_adk" }
599
dependencies = [
600
{ name = "composio" },
@@ -609,7 +609,7 @@ requires-dist = [
609
610
[[package]]
611
name = "composio-langchain"
612
-version = "0.8.19"
612
+version = "0.9.0"
613
source = { virtual = "python/providers/langchain" }
614
dependencies = [
615
{ name = "composio" },
@@ -624,7 +624,7 @@ requires-dist = [
624
625
[[package]]
626
name = "composio-openai"
627
-version = "0.8.19"
627
+version = "0.9.0"
628
source = { virtual = "python/providers/openai" }
629
dependencies = [
630
{ name = "composio" },
@@ -639,7 +639,7 @@ requires-dist = [
639
640
[[package]]
641
name = "composio-openai-agents"
642
-version = "0.8.19"
642
+version = "0.9.0"
643
source = { virtual = "python/providers/openai_agents" }
644
dependencies = [
645
{ name = "composio" },