Skip to content

Conversation

@seratch
Copy link
Member

@seratch seratch commented Jul 15, 2025

To prevent users from being confused with the zod latest version incompatibility, this pull request updates all the code snippets in this repo to use @openai/zod, which is the best workaround for #187 issue at this moment.

@seratch seratch requested a review from dkundel-openai July 15, 2025 03:43
@seratch seratch added documentation Improvements or additions to documentation package:agents-core labels Jul 15, 2025
@changeset-bot
Copy link

changeset-bot bot commented Jul 15, 2025

⚠️ No Changeset found

Latest commit: a42b329

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@seratch
Copy link
Member Author

seratch commented Jul 15, 2025

Still trying to eliminate the issue, but I haven't yet found a viable solution for it.

@dkundel-openai
Copy link
Collaborator

This seems odd? I introduced @openai/zod to explicitly be used for internal purposes only. Meaning it should only be used for things like parsing/validating protocols. For anything inferred like Structured Outputs and tool arguments it intentionally uses zod in the code bases as to use the peer dependency that we expect customers to install. So asking someone to use @openai/zod is essentially relying on an internal abstraction that might break (for example we might bump it to zod 4 if we decided it served our use cases better)

@seratch
Copy link
Member Author

seratch commented Jul 15, 2025

Yeah, this makes sense and this is why I wanted to know your thoughts on this idea. Let's continue exploring both short-term workaround and fundamental solutions for this issue.

@seratch seratch closed this Jul 15, 2025
@seratch seratch deleted the issue-187-document-updates2 branch August 27, 2025 01:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation package:agents-core

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants