@devries-cameron20 / composio Mirror · read-only / commits / 39fc5902d
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 21, 06:00 UTC

fix(providers): support OpenAI Agents 0.21 and require current Python core (#5293)

> Written by an AI agent following the requested specification. Human review is pending. ## Summary `npm install @composio/openai-agents@0.11.2 @openai/agents@0.21.0` fails with `ERESOLVE` because the adapter excludes 0.21. The Python adapter has no minimum `composio` version, allowing the old-core resolution reported in [DEVREL-310](https://linear.app/composio/issue/DEVREL-310). Fixes DEVREL-310. Designated PR reviewer: @jkomyno. ## Changes - Add `^0.21.0` to the TypeScript peer range, test against 0.21.0, align the OpenAI and Tool Router example dependencies to the same SDK version, and regenerate the pnpm lockfile. - Remove the redundant `?? {}` schema fallback: it erased the schema type and caused `tsc` errors on `properties`/`required`. The helper already accepts undefined. Strengthen the existing missing-parameters test to assert the emitted schema. - Require `composio>=0.32.0` in both Python manifests and regenerate `uv.lock`. This floor matches the published core used for verification. - Add one patch changeset covering `@composio/openai-agents` and `@composio/python-sdk`. ## Type of change - [x] Bug fix - [ ] New feature - [ ] Refactor/Chore - [ ] Documentation - [ ] Breaking change ## How Has This Been Tested? Before, a fresh consumer running npm install with the published adapter and Agents 0.21.0 returned exit 1: ```text npm error code ERESOLVE npm error ERESOLVE unable to resolve dependency tree npm error peer @openai/agents@"^0.1.3 || ^0.17.0 || ^0.18.0 || ^0.20.0" from @composio/openai-agents@0.11.2 ``` After, a separate fresh consumer installed the built adapter tarball with `@openai/agents@0.21.0`, without force or legacy peer options (exit 0): ```text added 40 packages in 3s ``` Validation on Node 24.22.1: - `pnpm --filter @composio/openai-agents test`: 19 passed. - After rebasing onto current `next`, `pnpm exec turbo typecheck --filter=openai-example --filter=tool-router-example`: passed (8 tasks, including dependent SDK builds and the OpenAI Worker typecheck). Both example lint commands and a filtered frozen-lockfile install also passed. The initial Examples TypeScript SDK failure came from mixing the provider's Agents 0.21 types with the examples' Agents 0.20 types; their dependencies now match. - `pnpm --filter @composio/openai-agents exec tsc --noEmit -p tsconfig.json`: passed. The package has no `typecheck` script. - `pnpm --filter @composio/openai-agents build`: passed, including ATTW and publint. - Packed consumer: npm resolved Agents 0.21.0 and published core 0.29.0; a consumer TypeScript file passed `tsc --noEmit --skipLibCheck --target es2022 --module nodenext`. - Existing unit tests mock Agents, so the packed consumer also used the real SDK: registered tools in an `Agent`, invoked them through `RunContext`, checked both strict modes, strict nullable-argument omission, and tools without input parameters. All passed without network model calls. - Python 3.12.3 isolated environment: installed the local provider with published `composio==0.32.0` and resolved `openai-agents==0.24.0`; `python -m pytest python/providers/openai_agents/tests/test_openai_agents_provider.py -q`: 17 passed. - Python provider wheel build, `twine check`, import, and assertions that both manifests and wheel metadata agree on the floor: passed. Resolution with `composio==0.22.0` was rejected as expected. - `uv lock --check`, `pnpm validate:changesets`, focused oxlint/Prettier, `bun run validate:agent-skills`, `bun run validate:skill-routing`, and `git diff --check`: passed. ## Screenshots (if applicable) Not applicable: package dependency metadata. ## Checklist - [x] I have read the Code of Conduct and this PR adheres to it - [ ] I have read and understand every line of this diff, including any LLM-generated code - [x] Any third-party docs links or promotional content follow the third-party links policy - [x] I ran linters/tests locally and they passed - [x] I updated documentation as needed (no install instructions changed) - [x] I added tests or explain why not applicable - [x] I added a changeset if this change affects published packages ## Additional context ELI5: The TypeScript adapter now accepts the tested framework version. The Python adapter now asks for a recent enough Composio core instead of accepting any old version. The initial TypeScript typecheck failed on the schema fallback described above; it passes with the one-line correction. No full docs build was run. No new dependency names or tracked files were added beyond the changeset. The pre-existing dirty `ts/vendor/clack` submodule is excluded. These changes still require the normal package release before the public npm/PyPI install paths change. No published-package fix or Gauge rerun is claimed. Please review the full diff before merging.

Brendan O'Leary committed Nov 11, 2026 at 04:33 UTC 39fc5902dd8721d10635d71adbd5f93dcd6ca724
10 files changed +70 -89
.changeset/openai-agents-dependency-compatibility.md new
+6
@@ -0,0 +1,6 @@
1 +---
2 +'@composio/openai-agents': patch
3 +'@composio/python-sdk': patch
4 +---
5 +
6 +Allow OpenAI Agents SDK 0.21 in the TypeScript provider's peer dependencies. Require composio 0.32.0 or newer for the Python OpenAI Agents provider so installs cannot retain an older core.
pnpm-lock.yaml
+50 -81
@@ -675,7 +675,7 @@ importers:
675 version: link:../../packages/core
676 '@modelcontextprotocol/sdk':
677 specifier: 'catalog:'
678 - version: 1.32.1(@cfworker/json-schema@4.1.1)(zod@4.6.7)
678 + version: 1.32.1(@cfworker/json-schema@4.1.1)(supports-color@10.2.2)(zod@4.6.7)
679 dotenv:
680 specifier: 'catalog:'
681 version: 18.0.8
@@ -779,7 +779,7 @@ importers:
779 version: 2.30.0(@modelcontextprotocol/sdk@1.32.1(@cfworker/json-schema@4.1.1)(zod@4.6.7))
780 '@modelcontextprotocol/sdk':
781 specifier: 'catalog:'
782 - version: 1.32.1(@cfworker/json-schema@4.1.1)(zod@4.6.7)
782 + version: 1.32.1(@cfworker/json-schema@4.1.1)(supports-color@10.2.2)(zod@4.6.7)
783 dotenv:
784 specifier: 'catalog:'
785 version: 18.0.8
@@ -835,7 +835,7 @@ importers:
835 version: 18.0.8
836 langchain:
837 specifier: ^1.5.18
838 - version: 1.5.18(@langchain/core@1.2.19(@opentelemetry/api@1.10.0)(openai@7.39.0(@aws-sdk/credential-provider-node@3.972.87)(@smithy/signature-v4@5.7.4)(undici@6.29.1)(ws@8.22.0)(zod@4.6.7))(ws@8.22.0))(@opentelemetry/api@1.9.1)(openai@7.39.0(@aws-sdk/credential-provider-node@3.972.87)(@smithy/signature-v4@5.7.4)(undici@6.29.1)(ws@8.22.0)(zod@4.6.7))(ws@8.22.0)
838 + version: 1.5.18(@langchain/core@1.2.19(@opentelemetry/api@1.10.0)(openai@7.39.0(@aws-sdk/credential-provider-node@3.972.87)(@smithy/signature-v4@5.7.4)(undici@6.29.1)(ws@8.22.0)(zod@4.6.7))(ws@8.22.0))(@opentelemetry/api@1.10.0)(openai@7.39.0(@aws-sdk/credential-provider-node@3.972.87)(@smithy/signature-v4@5.7.4)(undici@6.29.1)(ws@8.22.0)(zod@4.6.7))(ws@8.22.0)
839 openai:
840 specifier: 'catalog:'
841 version: 7.39.0(@aws-sdk/credential-provider-node@3.972.87)(@smithy/signature-v4@5.7.4)(undici@6.29.1)(ws@8.22.0)(zod@4.6.7)
@@ -931,7 +931,7 @@ importers:
931 version: link:../../packages/providers/vercel
932 '@modelcontextprotocol/sdk':
933 specifier: 'catalog:'
934 - version: 1.32.1(@cfworker/json-schema@4.1.1)(zod@4.6.7)
934 + version: 1.32.1(@cfworker/json-schema@4.1.1)(supports-color@10.2.2)(zod@4.6.7)
935 ai:
936 specifier: 'catalog:'
937 version: 7.0.146(zod@4.6.7)
@@ -984,10 +984,10 @@ importers:
984 version: link:../../packages/providers/openai-agents
985 '@modelcontextprotocol/sdk':
986 specifier: 'catalog:'
987 - version: 1.32.1(@cfworker/json-schema@4.1.1)(zod@4.6.7)
987 + version: 1.32.1(@cfworker/json-schema@4.1.1)(supports-color@10.2.2)(zod@4.6.7)
988 '@openai/agents':
989 - specifier: ^0.20.0
990 - version: 0.20.0(@aws-sdk/credential-provider-node@3.972.87)(@smithy/signature-v4@5.7.4)(supports-color@10.2.2)(undici@6.29.1)(ws@8.22.0)(zod@4.6.7)
989 + specifier: ^0.21.0
990 + version: 0.21.0(@aws-sdk/credential-provider-node@3.972.87)(@smithy/signature-v4@5.7.4)(undici@6.29.1)(ws@8.22.0)(zod@4.6.7)
991 dotenv:
992 specifier: 'catalog:'
993 version: 18.0.8
@@ -1066,8 +1066,8 @@ importers:
1066 specifier: ^1.6.2
1067 version: 1.6.2(@aws-sdk/credential-provider-node@3.972.87)(@langchain/core@1.2.19(@opentelemetry/api@1.10.0)(openai@7.39.0(@aws-sdk/credential-provider-node@3.972.87)(@smithy/signature-v4@5.7.4)(undici@6.29.1)(ws@8.22.0)(zod@4.6.7))(ws@8.22.0))(@smithy/signature-v4@5.7.4)(undici@6.29.1)(ws@8.22.0)
1068 '@openai/agents':
1069 - specifier: ^0.20.0
1070 - version: 0.20.0(@aws-sdk/credential-provider-node@3.972.87)(@smithy/signature-v4@5.7.4)(supports-color@10.2.2)(undici@6.29.1)(ws@8.22.0)(zod@4.6.7)
1069 + specifier: ^0.21.0
1070 + version: 0.21.0(@aws-sdk/credential-provider-node@3.972.87)(@smithy/signature-v4@5.7.4)(undici@6.29.1)(ws@8.22.0)(zod@4.6.7)
1071 ai:
1072 specifier: 'catalog:'
1073 version: 7.0.146(zod@4.6.7)
@@ -1213,7 +1213,7 @@ importers:
1213 version: link:../../packages/providers/vercel
1214 '@modelcontextprotocol/sdk':
1215 specifier: 'catalog:'
1216 - version: 1.32.1(@cfworker/json-schema@4.1.1)(zod@4.6.7)
1216 + version: 1.32.1(@cfworker/json-schema@4.1.1)(supports-color@10.2.2)(zod@4.6.7)
1217 ai:
1218 specifier: 'catalog:'
1219 version: 7.0.146(zod@4.6.7)
@@ -1587,7 +1587,7 @@ importers:
1587 version: link:../../core
1588 '@modelcontextprotocol/sdk':
1589 specifier: 'catalog:'
1590 - version: 1.32.1(@cfworker/json-schema@4.1.1)(zod@4.6.7)
1590 + version: 1.32.1(@cfworker/json-schema@4.1.1)(supports-color@10.2.2)(zod@4.6.7)
1591 tsdown:
1592 specifier: 'catalog:'
1593 version: 0.23.1(@arethetypeswrong/core@0.18.5)(publint@0.3.25)(tsx@4.23.15)(typescript@7.0.2)(unrun@0.2.27(@emnapi/core@1.11.2)(@emnapi/runtime@1.11.3))
@@ -1722,8 +1722,8 @@ importers:
1722 specifier: workspace:*
1723 version: link:../../core
1724 '@openai/agents':
1725 - specifier: ^0.20.0
1726 - version: 0.20.0(@aws-sdk/credential-provider-node@3.972.87)(@smithy/signature-v4@5.7.4)(supports-color@10.2.2)(undici@6.29.1)(ws@8.22.0)(zod@4.6.7)
1725 + specifier: ^0.21.0
1726 + version: 0.21.0(@aws-sdk/credential-provider-node@3.972.87)(@smithy/signature-v4@5.7.4)(undici@6.29.1)(ws@8.22.0)(zod@4.6.7)
1727 tsdown:
1728 specifier: 'catalog:'
1729 version: 0.23.1(@arethetypeswrong/core@0.18.5)(publint@0.3.25)(tsx@4.23.15)(typescript@7.0.2)(unrun@0.2.27(@emnapi/core@1.11.2)(@emnapi/runtime@1.11.3))
@@ -3419,26 +3419,26 @@ packages:
3419 '@emnapi/core': ^1.7.1 || ^2.0.0-alpha.4
3420 '@emnapi/runtime': ^1.7.1 || ^2.0.0-alpha.4
3421
3422 - '@openai/agents-core@0.20.0':
3423 - resolution: {integrity: sha512-9nJJ3iyQTwO2kmrZJPMqnHI61g3xp2DgtpW4V0cgNtYot5jocDqAMN5+dkjtsBo64U3Wbl7rIAV0q5kvycoIIA==}
3422 + '@openai/agents-core@0.21.0':
3423 + resolution: {integrity: sha512-P2jJhc85xrKpe9GUOHAVfPHqK52my49fD1CI0LnfYEvBUwZxJXQI6lgSwby9nWhvQECveM9OvBUglAXuArsHXw==}
3424 peerDependencies:
3425 zod: ^4.0.0
3426 peerDependenciesMeta:
3427 zod:
3428 optional: true
3429
3430 - '@openai/agents-openai@0.20.0':
3431 - resolution: {integrity: sha512-6jAwFlUvlRiN/OBwTZa8xUSwbXb5nxGtSUG6kKEW19Zo70kN+CLqaVLTHy8cQpnQiTEMPuAICAXklRx7kTfE9Q==}
3430 + '@openai/agents-openai@0.21.0':
3431 + resolution: {integrity: sha512-Y1u1ek6FwKx8j+T7gRYcm4kKyN0irqsyZm0XUDZ+g+8s15tu4EhNwNJ92zOHGx7Vjkr2RugWBxTeNspHjw/lQw==}
3432 peerDependencies:
3433 zod: ^4.0.0
3434
3435 - '@openai/agents-realtime@0.20.0':
3436 - resolution: {integrity: sha512-KK3w9k9rkqv5mC25vykWTe/1IIcOMsqwJs9mB0aX9Z2Us487xGduZgqr+ENEzthjZbQvTi/+qUv/tfoZeN/p/w==}
3435 + '@openai/agents-realtime@0.21.0':
3436 + resolution: {integrity: sha512-nI0jGkSdivlXzS7HXAB1EVplaeSyoAvfM2ofHheJDJdshs3UQl3x405nmTflKWye+wQrqemK4uxL06NIhgvjHg==}
3437 peerDependencies:
3438 zod: ^4.0.0
3439
3440 - '@openai/agents@0.20.0':
3441 - resolution: {integrity: sha512-k3fm1qJ5VjYvBI1juwZGDdhtpd7CZqJlt+6zIMcmzHD1mIQoW9HhXN8Wv9G9PpemWz9ykaxj6CIQkY8kMAuWjA==}
3440 + '@openai/agents@0.21.0':
3441 + resolution: {integrity: sha512-NpJ74/dGbpYZiRYF474pCaBpxqh4A8+WHbZmaEZVQpRqieZAVH+MV4fesR9MtRGUZfpW5B91zuHzIilQp2iSxQ==}
3442 peerDependencies:
3443 zod: ^4.0.0
3444
@@ -4246,9 +4246,6 @@ packages:
4246 '@types/unist@3.0.3':
4247 resolution: {integrity: sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==}
4248
4249 - '@types/ws@8.18.1':
4250 - resolution: {integrity: sha512-ThVF6DCVhA8kUGy+aazFQ4kXQ7E1Ty7A3ypFOe0IcJV8O/M511G99AW24irKrW56Wt44yG9+ij8FaqoBGkuBXg==}
4251 -
4249 '@types/ws@8.18.2':
4250 resolution: {integrity: sha512-67MQl+fpWKVTT1NYdnmo3U4sc/xPo/zQBncVnI74qmQa0z/b+1g6iYqNmGCPbxO+zz2aklb08a0oHfegiVd0/w==}
4251
@@ -7154,7 +7151,7 @@ snapshots:
7151 '@anthropic-ai/claude-agent-sdk@0.3.304(@anthropic-ai/sdk@0.135.0(zod@4.6.7))(@modelcontextprotocol/sdk@1.32.1(@cfworker/json-schema@4.1.1)(zod@4.6.7))(zod@4.6.7)':
7152 dependencies:
7153 '@anthropic-ai/sdk': 0.135.0(zod@4.6.7)
7157 - '@modelcontextprotocol/sdk': 1.32.1(@cfworker/json-schema@4.1.1)(zod@4.6.7)
7154 + '@modelcontextprotocol/sdk': 1.32.1(@cfworker/json-schema@4.1.1)(supports-color@10.2.2)(zod@4.6.7)
7155 zod: 4.6.7
7156 optionalDependencies:
7157 '@anthropic-ai/claude-agent-sdk-darwin-arm64': 0.3.304
@@ -7961,7 +7958,7 @@ snapshots:
7958 protobufjs: 7.6.5
7959 ws: 8.21.3
7960 optionalDependencies:
7964 - '@modelcontextprotocol/sdk': 1.32.1(@cfworker/json-schema@4.1.1)(zod@4.6.7)
7961 + '@modelcontextprotocol/sdk': 1.32.1(@cfworker/json-schema@4.1.1)(supports-color@10.2.2)(zod@4.6.7)
7962 transitivePeerDependencies:
7963 - bufferutil
7964 - supports-color
@@ -7974,7 +7971,7 @@ snapshots:
7971 protobufjs: 7.6.5
7972 ws: 8.22.0
7973 optionalDependencies:
7977 - '@modelcontextprotocol/sdk': 1.32.1(@cfworker/json-schema@4.1.1)(zod@4.6.7)
7974 + '@modelcontextprotocol/sdk': 1.32.1(@cfworker/json-schema@4.1.1)(supports-color@10.2.2)(zod@4.6.7)
7975 transitivePeerDependencies:
7976 - bufferutil
7977 - supports-color
@@ -7987,7 +7984,7 @@ snapshots:
7984 protobufjs: 7.6.5
7985 ws: 8.22.0
7986 optionalDependencies:
7990 - '@modelcontextprotocol/sdk': 1.32.1(@cfworker/json-schema@4.1.1)(zod@4.6.7)
7987 + '@modelcontextprotocol/sdk': 1.32.1(@cfworker/json-schema@4.1.1)(supports-color@10.2.2)(zod@4.6.7)
7988 transitivePeerDependencies:
7989 - bufferutil
7990 - supports-color
@@ -8349,7 +8346,7 @@ snapshots:
8346
8347 '@llamaindex/workflow-core@1.3.4(@modelcontextprotocol/sdk@1.32.1(@cfworker/json-schema@4.1.1)(zod@4.6.7))(hono@4.13.13)(zod@4.6.7)':
8348 optionalDependencies:
8352 - '@modelcontextprotocol/sdk': 1.32.1(@cfworker/json-schema@4.1.1)(zod@4.6.7)
8349 + '@modelcontextprotocol/sdk': 1.32.1(@cfworker/json-schema@4.1.1)(supports-color@10.2.2)(zod@4.6.7)
8350 hono: 4.13.13
8351 zod: 4.6.7
8352
@@ -8523,7 +8520,7 @@ snapshots:
8520 '@modelcontextprotocol/core': 2.4.0
8521 '@modelcontextprotocol/ext-apps': 1.7.5(@modelcontextprotocol/sdk@1.32.1(@cfworker/json-schema@4.1.1)(zod@4.6.7))(zod@4.6.7)
8522 '@modelcontextprotocol/node': 2.1.2(@modelcontextprotocol/server@2.4.0)
8526 - '@modelcontextprotocol/sdk': 1.32.1(@cfworker/json-schema@4.1.1)(zod@4.6.7)
8523 + '@modelcontextprotocol/sdk': 1.32.1(@cfworker/json-schema@4.1.1)(supports-color@10.2.2)(zod@4.6.7)
8524 '@modelcontextprotocol/server': 2.4.0
8525 '@modelcontextprotocol/server-legacy': 2.4.0(express@5.3.0)
8526 exit-hook: 5.1.0
@@ -8580,7 +8577,7 @@ snapshots:
8577
8578 '@modelcontextprotocol/ext-apps@1.7.5(@modelcontextprotocol/sdk@1.32.1(@cfworker/json-schema@4.1.1)(zod@4.6.7))(zod@4.6.7)':
8579 dependencies:
8583 - '@modelcontextprotocol/sdk': 1.32.1(@cfworker/json-schema@4.1.1)(zod@4.6.7)
8580 + '@modelcontextprotocol/sdk': 1.32.1(@cfworker/json-schema@4.1.1)(supports-color@10.2.2)(zod@4.6.7)
8581 '@standard-schema/spec': 1.1.0
8582 zod: 4.6.7
8583
@@ -8601,7 +8598,7 @@ snapshots:
8598 eventsource: 3.0.7
8599 eventsource-parser: 3.1.1
8600 express: 5.3.0
8604 - express-rate-limit: 8.7.1(express@5.3.0)
8601 + express-rate-limit: 8.7.1(express@5.3.0)(supports-color@10.2.2)
8602 hono: 4.13.13
8603 jose: 6.2.12
8604 json-schema-typed: 8.0.2
@@ -8625,7 +8622,7 @@ snapshots:
8622 eventsource: 3.0.7
8623 eventsource-parser: 3.1.1
8624 express: 5.3.0
8628 - express-rate-limit: 8.7.1(express@5.3.0)
8625 + express-rate-limit: 8.7.1(express@5.3.0)(supports-color@10.2.2)
8626 hono: 4.13.13
8627 jose: 6.2.12
8628 json-schema-typed: 8.0.2
@@ -8638,7 +8635,7 @@ snapshots:
8635 transitivePeerDependencies:
8636 - supports-color
8637
8641 - '@modelcontextprotocol/sdk@1.32.1(@cfworker/json-schema@4.1.1)(zod@3.25.76)':
8638 + '@modelcontextprotocol/sdk@1.32.1(@cfworker/json-schema@4.1.1)(supports-color@10.2.2)(zod@4.6.7)':
8639 dependencies:
8640 '@hono/node-server': 2.1.5(hono@4.13.13)
8641 ajv: 8.20.0
@@ -8649,20 +8646,20 @@ snapshots:
8646 eventsource: 3.0.7
8647 eventsource-parser: 3.1.1
8648 express: 5.3.0
8652 - express-rate-limit: 8.7.1(express@5.3.0)
8649 + express-rate-limit: 8.7.1(express@5.3.0)(supports-color@10.2.2)
8650 hono: 4.13.13
8651 jose: 6.2.13
8652 json-schema-typed: 8.0.2
8653 pkce-challenge: 5.0.1
8654 raw-body: 3.0.2
8658 - zod: 3.25.76
8659 - zod-to-json-schema: 3.25.2(zod@3.25.76)
8655 + zod: 4.6.7
8656 + zod-to-json-schema: 3.25.2(zod@4.6.7)
8657 optionalDependencies:
8658 '@cfworker/json-schema': 4.1.1
8659 transitivePeerDependencies:
8660 - supports-color
8661
8665 - '@modelcontextprotocol/sdk@1.32.1(@cfworker/json-schema@4.1.1)(zod@4.6.7)':
8662 + '@modelcontextprotocol/sdk@1.32.1(@cfworker/json-schema@4.1.1)(zod@3.25.76)':
8663 dependencies:
8664 '@hono/node-server': 2.1.5(hono@4.13.13)
8665 ajv: 8.20.0
@@ -8673,14 +8670,14 @@ snapshots:
8670 eventsource: 3.0.7
8671 eventsource-parser: 3.1.1
8672 express: 5.3.0
8676 - express-rate-limit: 8.7.1(express@5.3.0)
8673 + express-rate-limit: 8.7.1(express@5.3.0)(supports-color@10.2.2)
8674 hono: 4.13.13
8675 jose: 6.2.13
8676 json-schema-typed: 8.0.2
8677 pkce-challenge: 5.0.1
8678 raw-body: 3.0.2
8682 - zod: 4.6.7
8683 - zod-to-json-schema: 3.25.2(zod@4.6.7)
8679 + zod: 3.25.76
8680 + zod-to-json-schema: 3.25.2(zod@3.25.76)
8681 optionalDependencies:
8682 '@cfworker/json-schema': 4.1.1
8683 transitivePeerDependencies:
@@ -8691,7 +8688,7 @@ snapshots:
8688 '@modelcontextprotocol/core': 2.4.0
8689 content-type: 1.0.5
8690 cors: 2.8.6
8694 - express-rate-limit: 8.7.1(express@5.3.0)
8691 + express-rate-limit: 8.7.1(express@5.3.0)(supports-color@10.2.2)
8692 pkce-challenge: 5.0.1
8693 raw-body: 3.0.2
8694 zod: 4.6.7
@@ -8715,7 +8712,7 @@ snapshots:
8712 '@tybys/wasm-util': 0.10.4
8713 optional: true
8714
8718 - '@openai/agents-core@0.20.0(@aws-sdk/credential-provider-node@3.972.87)(@smithy/signature-v4@5.7.4)(supports-color@10.2.2)(undici@6.29.1)(ws@8.22.0)(zod@4.6.7)':
8715 + '@openai/agents-core@0.21.0(@aws-sdk/credential-provider-node@3.972.87)(@smithy/signature-v4@5.7.4)(undici@6.29.1)(ws@8.22.0)(zod@4.6.7)':
8716 dependencies:
8717 '@standard-schema/spec': 1.1.0
8718 debug: 4.4.3(supports-color@10.2.2)
@@ -8731,9 +8728,9 @@ snapshots:
8728 - undici
8729 - ws
8730
8734 - '@openai/agents-openai@0.20.0(@aws-sdk/credential-provider-node@3.972.87)(@smithy/signature-v4@5.7.4)(undici@6.29.1)(ws@8.22.0)(zod@4.6.7)':
8731 + '@openai/agents-openai@0.21.0(@aws-sdk/credential-provider-node@3.972.87)(@smithy/signature-v4@5.7.4)(undici@6.29.1)(ws@8.22.0)(zod@4.6.7)':
8732 dependencies:
8736 - '@openai/agents-core': 0.20.0(@aws-sdk/credential-provider-node@3.972.87)(@smithy/signature-v4@5.7.4)(supports-color@10.2.2)(undici@6.29.1)(ws@8.22.0)(zod@4.6.7)
8733 + '@openai/agents-core': 0.21.0(@aws-sdk/credential-provider-node@3.972.87)(@smithy/signature-v4@5.7.4)(undici@6.29.1)(ws@8.22.0)(zod@4.6.7)
8734 openai: 7.39.0(@aws-sdk/credential-provider-node@3.972.87)(@smithy/signature-v4@5.7.4)(undici@6.29.1)(ws@8.22.0)(zod@4.6.7)
8735 zod: 4.6.7
8736 transitivePeerDependencies:
@@ -8744,10 +8741,10 @@ snapshots:
8741 - undici
8742 - ws
8743
8747 - '@openai/agents-realtime@0.20.0(@aws-sdk/credential-provider-node@3.972.87)(@smithy/signature-v4@5.7.4)(undici@6.29.1)(zod@4.6.7)':
8744 + '@openai/agents-realtime@0.21.0(@aws-sdk/credential-provider-node@3.972.87)(@smithy/signature-v4@5.7.4)(undici@6.29.1)(zod@4.6.7)':
8745 dependencies:
8749 - '@openai/agents-core': 0.20.0(@aws-sdk/credential-provider-node@3.972.87)(@smithy/signature-v4@5.7.4)(supports-color@10.2.2)(undici@6.29.1)(ws@8.22.0)(zod@4.6.7)
8750 - '@types/ws': 8.18.1
8746 + '@openai/agents-core': 0.21.0(@aws-sdk/credential-provider-node@3.972.87)(@smithy/signature-v4@5.7.4)(undici@6.29.1)(ws@8.22.0)(zod@4.6.7)
8747 + '@types/ws': 8.18.2
8748 ws: 8.22.0
8749 zod: 4.6.7
8750 transitivePeerDependencies:
@@ -8759,11 +8756,11 @@ snapshots:
8756 - undici
8757 - utf-8-validate
8758
8762 - '@openai/agents@0.20.0(@aws-sdk/credential-provider-node@3.972.87)(@smithy/signature-v4@5.7.4)(supports-color@10.2.2)(undici@6.29.1)(ws@8.22.0)(zod@4.6.7)':
8759 + '@openai/agents@0.21.0(@aws-sdk/credential-provider-node@3.972.87)(@smithy/signature-v4@5.7.4)(undici@6.29.1)(ws@8.22.0)(zod@4.6.7)':
8760 dependencies:
8764 - '@openai/agents-core': 0.20.0(@aws-sdk/credential-provider-node@3.972.87)(@smithy/signature-v4@5.7.4)(supports-color@10.2.2)(undici@6.29.1)(ws@8.22.0)(zod@4.6.7)
8765 - '@openai/agents-openai': 0.20.0(@aws-sdk/credential-provider-node@3.972.87)(@smithy/signature-v4@5.7.4)(undici@6.29.1)(ws@8.22.0)(zod@4.6.7)
8766 - '@openai/agents-realtime': 0.20.0(@aws-sdk/credential-provider-node@3.972.87)(@smithy/signature-v4@5.7.4)(undici@6.29.1)(zod@4.6.7)
8761 + '@openai/agents-core': 0.21.0(@aws-sdk/credential-provider-node@3.972.87)(@smithy/signature-v4@5.7.4)(undici@6.29.1)(ws@8.22.0)(zod@4.6.7)
8762 + '@openai/agents-openai': 0.21.0(@aws-sdk/credential-provider-node@3.972.87)(@smithy/signature-v4@5.7.4)(undici@6.29.1)(ws@8.22.0)(zod@4.6.7)
8763 + '@openai/agents-realtime': 0.21.0(@aws-sdk/credential-provider-node@3.972.87)(@smithy/signature-v4@5.7.4)(undici@6.29.1)(zod@4.6.7)
8764 openai: 7.39.0(@aws-sdk/credential-provider-node@3.972.87)(@smithy/signature-v4@5.7.4)(undici@6.29.1)(ws@8.22.0)(zod@4.6.7)
8765 zod: 4.6.7
8766 transitivePeerDependencies:
@@ -9309,10 +9306,6 @@ snapshots:
9306
9307 '@types/unist@3.0.3': {}
9308
9312 - '@types/ws@8.18.1':
9313 - dependencies:
9314 - '@types/node': 26.6.5
9315 -
9309 '@types/ws@8.18.2':
9310 dependencies:
9311 '@types/node': 26.6.5
@@ -9996,7 +9989,7 @@ snapshots:
9989
9990 expect-type@1.4.0: {}
9991
9999 - express-rate-limit@8.7.1(express@5.3.0):
9992 + express-rate-limit@8.7.1(express@5.3.0)(supports-color@10.2.2):
9993 dependencies:
9994 debug: 4.4.3(supports-color@10.2.2)
9995 express: 5.3.0
@@ -10420,22 +10413,6 @@ snapshots:
10413 - react-dom
10414 - ws
10415
10423 - langchain@1.5.18(@langchain/core@1.2.19(@opentelemetry/api@1.10.0)(openai@7.39.0(@aws-sdk/credential-provider-node@3.972.87)(@smithy/signature-v4@5.7.4)(undici@6.29.1)(ws@8.22.0)(zod@4.6.7))(ws@8.22.0))(@opentelemetry/api@1.9.1)(openai@7.39.0(@aws-sdk/credential-provider-node@3.972.87)(@smithy/signature-v4@5.7.4)(undici@6.29.1)(ws@8.22.0)(zod@4.6.7))(ws@8.22.0):
10424 - dependencies:
10425 - '@langchain/core': 1.2.19(@opentelemetry/api@1.10.0)(openai@7.39.0(@aws-sdk/credential-provider-node@3.972.87)(@smithy/signature-v4@5.7.4)(undici@6.29.1)(ws@8.22.0)(zod@4.6.7))(ws@8.22.0)
10426 - '@langchain/langgraph': 1.5.1(@langchain/core@1.2.19(@opentelemetry/api@1.10.0)(openai@7.39.0(@aws-sdk/credential-provider-node@3.972.87)(@smithy/signature-v4@5.7.4)(undici@6.29.1)(ws@8.22.0)(zod@4.6.7))(ws@8.22.0))(zod@4.6.7)
10427 - '@langchain/langgraph-checkpoint': 1.1.6(@langchain/core@1.2.19(@opentelemetry/api@1.10.0)(openai@7.39.0(@aws-sdk/credential-provider-node@3.972.87)(@smithy/signature-v4@5.7.4)(undici@6.29.1)(ws@8.22.0)(zod@4.6.7))(ws@8.22.0))
10428 - langsmith: 0.11.0(@opentelemetry/api@1.9.1)(openai@7.39.0(@aws-sdk/credential-provider-node@3.972.87)(@smithy/signature-v4@5.7.4)(undici@6.29.1)(ws@8.22.0)(zod@4.6.7))(ws@8.22.0)
10429 - zod: 4.6.7
10430 - transitivePeerDependencies:
10431 - - '@opentelemetry/api'
10432 - - '@opentelemetry/exporter-trace-otlp-proto'
10433 - - '@opentelemetry/sdk-trace-base'
10434 - - openai
10435 - - react
10436 - - react-dom
10437 - - ws
10438 -
10416 langsmith@0.11.0(@opentelemetry/api@1.10.0)(openai@7.39.0(@aws-sdk/credential-provider-node@3.972.87)(@smithy/signature-v4@5.7.4)(undici@6.29.1)(ws@8.22.0)(zod@4.6.7))(ws@8.22.0):
10417 dependencies:
10418 p-queue: 6.6.2
@@ -10444,14 +10421,6 @@ snapshots:
10421 openai: 7.39.0(@aws-sdk/credential-provider-node@3.972.87)(@smithy/signature-v4@5.7.4)(undici@6.29.1)(ws@8.22.0)(zod@4.6.7)
10422 ws: 8.22.0
10423
10447 - langsmith@0.11.0(@opentelemetry/api@1.9.1)(openai@7.39.0(@aws-sdk/credential-provider-node@3.972.87)(@smithy/signature-v4@5.7.4)(undici@6.29.1)(ws@8.22.0)(zod@4.6.7))(ws@8.22.0):
10448 - dependencies:
10449 - p-queue: 6.6.2
10450 - optionalDependencies:
10451 - '@opentelemetry/api': 1.9.1
10452 - openai: 7.39.0(@aws-sdk/credential-provider-node@3.972.87)(@smithy/signature-v4@5.7.4)(undici@6.29.1)(ws@8.22.0)(zod@4.6.7)
10453 - ws: 8.22.0
10454 -
10424 launch-editor@2.14.1:
10425 dependencies:
10426 picocolors: 1.1.1
python/providers/openai_agents/pyproject.toml
+1 -1
@@ -14,7 +14,7 @@ classifiers = [
14 ]
15 dependencies = [
16 "openai-agents>=0.18.3,<1",
17 - "composio",
17 + "composio>=0.32.0",
18 ]
19
20 [project.urls]
python/providers/openai_agents/setup.py
+1 -1
@@ -22,6 +22,6 @@ setup(
22 ],
23 python_requires=">=3.11,<3.16",
24 packages=find_packages(),
25 - install_requires=["openai-agents>=0.18.3,<1", "composio"],
25 + install_requires=["openai-agents>=0.18.3,<1", "composio>=0.32.0"],
26 include_package_data=True,
27 )
ts/examples/openai/package.json
+1 -1
@@ -30,7 +30,7 @@
30 "@composio/openai": "workspace:*",
31 "@composio/openai-agents": "workspace:*",
32 "@modelcontextprotocol/sdk": "catalog:",
33 - "@openai/agents": "^0.20.0",
33 + "@openai/agents": "^0.21.0",
34 "dotenv": "catalog:",
35 "openai": "catalog:",
36 "zod": "catalog:",
ts/examples/tool-router/package.json
+1 -1
@@ -31,7 +31,7 @@
31 "@langchain/anthropic": "^1.5.12",
32 "@langchain/mcp-adapters": "^2.0.1",
33 "@langchain/openai": "^1.6.2",
34 - "@openai/agents": "^0.20.0",
34 + "@openai/agents": "^0.21.0",
35 "ai": "catalog:",
36 "dotenv": "catalog:",
37 "langchain": "^1.5.18",
ts/packages/providers/openai-agents/package.json
+2 -2
@@ -41,12 +41,12 @@
41 "license": "ISC",
42 "peerDependencies": {
43 "@composio/core": ">=0.10.0 <1.0.0 || >=1.0.0-beta.0 <1.0.0",
44 - "@openai/agents": "^0.1.3 || ^0.17.0 || ^0.18.0 || ^0.20.0",
44 + "@openai/agents": "^0.1.3 || ^0.17.0 || ^0.18.0 || ^0.20.0 || ^0.21.0",
45 "zod": "catalog:"
46 },
47 "devDependencies": {
48 "@composio/core": "workspace:*",
49 - "@openai/agents": "^0.20.0",
49 + "@openai/agents": "^0.21.0",
50 "tsdown": "catalog:",
51 "typescript": "catalog:",
52 "vitest": "catalog:",
ts/packages/providers/openai-agents/src/index.ts
+1 -1
@@ -142,7 +142,7 @@ export class OpenAIAgentsProvider extends BaseAgenticProvider<
142 */
143 wrapTool(composioTool: ComposioTool, executeTool: ExecuteToolFn): OpenAIAgentTool {
144 const inputParameters = deduplicateJsonSchemaRequiredArrays(
145 - dereferenceJsonSchema(composioTool.inputParameters ?? {}, { onUnresolved: 'sentinel' })
145 + dereferenceJsonSchema(composioTool.inputParameters, { onUnresolved: 'sentinel' })
146 );
147
148 // Strict mode applies OpenAI's structured-output contract at every
ts/packages/providers/openai-agents/test/openai-agents.test.ts
+6
@@ -111,6 +111,12 @@ describe('OpenAIAgentsProvider', () => {
111 ) as unknown as MockedOpenAIAgentTool;
112
113 expect(wrapped._isMockedOpenAIAgentTool).toBe(true);
114 + expect(wrapped.parameters).toEqual({
115 + type: 'object',
116 + properties: {},
117 + required: [],
118 + additionalProperties: true,
119 + });
120 });
121
122 it('deduplicates required entries for directly wrapped tools', () => {
uv.lock
+1 -1
@@ -688,7 +688,7 @@ dependencies = [
688
689 [package.metadata]
690 requires-dist = [
691 - { name = "composio" },
691 + { name = "composio", specifier = ">=0.32.0" },
692 { name = "openai-agents", specifier = ">=0.18.3,<1" },
693 ]
694