openai/openai-agents-js 8c0f8333..9bcb19a9
base and head as given
- Agent tools now accept schemas from Zod 3 and Zod 4.
- A JSON Schema compatibility layer was added to agent core.
- Dedicated Node integration coverage was added for Zod 3 and Zod 4.
- files changed
- 31
- in a component
- 12
- lines in components
- 784
- components
- 6
- public routes changed
- 0
- schema statements
- 0
- new dependencies
- 0
- excluded by role
- 19
Zod schema compatibility
Added- Before
- Strict tool schema fallback did not exist
- After
- Unsupported schemas use a fallback
Tool authors can use Zod 3 or Zod 4 object schemas for strict tools. If upstream conversion omits required object metadata, supported shapes are converted locally; unsupported shapes raise a user error.
In favour
- In favour: Returns a user error rather than emitting an incomplete schema
Against
- Against: Depends on undocumented Zod internals across both supported major versions
Inspect 12 source files behind this explanation
- packages/agents-core/src/agent.ts
- packages/agents-core/src/types/helpers.ts
- integration-tests/node-zod3/index.cjs
- integration-tests/node-zod4/index.cjs
- integration-tests/node/index.cjs
- packages/agents-core/src/utils/zodJsonSchemaCompat.ts
- packages/agents-core/src/tool.ts
- integration-tests/node-zod3/index.mjs
- integration-tests/node-zod4/index.mjs
- packages/agents-core/src/utils/zodCompat.ts
- packages/agents-core/src/utils/tools.ts
- packages/agents-core/src/utils/typeGuards.ts
1 new dependency between components — Type Definitions → Utility Functions
What else could behave differently
6 components · 44 filesThese components import changed code, directly or through other files. A traced dependency is a place to review, not a confirmed runtime failure. Some paths stopped at heavily imported files; inspect those consumers separately.
Reached 3
| Component | Symbol | Cited at | Files | Reached by |
|---|---|---|---|---|
| Agents Core Sourcepackages/agents-core/src/ | Signature changed AgentOutputType1 of 16 changed symbols reaching it | packages/agents-core/src/agent.ts:121-125 | 21 | 15 direct · 3 at two steps · 2 at three steps · 1 at four stepsTrace pathShortest component path from the changed symbol:
Later steps follow file imports; they do not prove this symbol is called. |
| Type Definitionspackages/agents-core/src/types/ | Signature changed AgentOutputType1 of 15 changed symbols reaching it | packages/agents-core/src/agent.ts:121-125 | 3 | 1 direct · 2 at two stepsTrace pathShortest component path from the changed symbol:
Later steps follow file imports; they do not prove this symbol is called. |
| Utility Functionspackages/agents-core/src/utils/ | Signature changed AgentOutputType1 of 15 changed symbols reaching it | packages/agents-core/src/agent.ts:121-125 | 6 | 5 direct · 1 at two stepsTrace pathShortest component path from the changed symbol:
Later steps follow file imports; they do not prove this symbol is called. |
Ranked lower 3
| Component | Files | Reached by |
|---|---|---|
| packages/agents-core/src/shims/ | 6 | none direct · 2 at two steps · 3 at three steps · 1 at four steps |
| packages/agents-core/src/tracing/ | 6 | none direct · 2 at two steps · 2 at three steps · 2 at four steps |
| packages/agents-core/src/extensions/ | 2 | none direct · 1 at two steps · 1 at three steps |
Not traced past a hub 2
| Symbol | Hub file | Imported by |
|---|---|---|
| packages/agents-core/src/utils/tools.ts:getSchemaAndParserFromInputType | packages/agents-core/src/agent.ts | 35 |
| packages/agents-core/src/utils/tools.ts:convertAgentOutputTypeToSerializable | packages/agents-core/src/agent.ts | 35 |
Statements 3
AgentOutputType's signature changed and reached 21 files in the agents core source. 15321AgentOutputType's signature changed and reached 3 files in type definitions. 12AgentOutputType's signature changed and reached 6 files in utility functions. 5136 reached files belong to no component — tests, docs and config.
Routes, schema, dependencies
No public URL, no migration and no new package.
Not stated
- 5 routes were found on files whose role excludes them, so no route is claimed for them.
Inspect components, files and symbols
Component
File
Function
imports what changeddownstream of it, one mark per step
Diff
Analysis scope
690 → 6- files at head690
- components27
- changed by this change6
Where the new files landed
6 new files| New file | Belongs to | Used by | Calls | Serves |
|---|---|---|---|---|
| integration-tests/node-zod3/2 new files | Node Zod3 Testsnew territory | nothing in the existing application | nothing outside its own component | — |
| integration-tests/node-zod4/2 new files | Node Zod4 Testsnew territory | nothing in the existing application | nothing outside its own component | — |
| packages/agents-core/src/utils/2 new files | Utility Functionsbase frame | Agents Core SourceType Definitions | Type Definitions | — |
8 added files carry no component — 4 config, 3 test, 1 docs.
31 files changed, 15 claims stated. 6 components reached in total.