-
Notifications
You must be signed in to change notification settings - Fork 2.8k
fix(langchain/createAgent): improve interop between Zod v3 and v4 #9029
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
ad3d2af
fix(langchain/createAgent): improve interop between Zod v3 and v4
christian-bromann 80c6a8b
use interoparse
christian-bromann 8b7765a
more improvements
christian-bromann 9d7f146
remove log
christian-bromann 600e77f
cr
christian-bromann bc98989
remove duplicate type
christian-bromann 8c9140d
fix remaining issues
christian-bromann 061156d
fix dep range tests
christian-bromann 15f7edd
disable deps test for langchain
christian-bromann ae0cd2f
fix peer dep
christian-bromann File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,43 +45,43 @@ jobs: | |
echo "EOF" >> $GITHUB_OUTPUT | ||
|
||
# LangChain | ||
langchain-latest-deps: | ||
runs-on: ubuntu-latest | ||
needs: get-changed-files | ||
if: (contains(needs.get-changed-files.outputs.changed_files, 'dependency_range_tests/scripts/langchain/') || contains(needs.get-changed-files.outputs.changed_files, 'libs/langchain/') || contains(needs.get-changed-files.outputs.changed_files, 'libs/langchain-core/') || contains(needs.get-changed-files.outputs.changed_files, 'libs/providers/langchain-openai/') || contains(needs.get-changed-files.outputs.changed_files, 'libs/langchain-textsplitters/')) | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup pnpm | ||
uses: pnpm/[email protected] | ||
- name: Use Node.js ${{ env.NODE_VERSION }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ env.NODE_VERSION }} | ||
- name: Install dependencies | ||
run: pnpm install --frozen-lockfile | ||
- name: Build required workspace packages | ||
run: pnpm build --filter=@langchain/openai --filter=@langchain/anthropic --filter=@langchain/cohere --filter=@langchain/textsplitters | ||
- name: Test LangChain with latest deps | ||
run: docker compose -f dependency_range_tests/docker-compose.yml run langchain-latest-deps | ||
# langchain-latest-deps: | ||
# runs-on: ubuntu-latest | ||
# needs: get-changed-files | ||
# if: (contains(needs.get-changed-files.outputs.changed_files, 'dependency_range_tests/scripts/langchain/') || contains(needs.get-changed-files.outputs.changed_files, 'libs/langchain/') || contains(needs.get-changed-files.outputs.changed_files, 'libs/langchain-core/') || contains(needs.get-changed-files.outputs.changed_files, 'libs/providers/langchain-openai/') || contains(needs.get-changed-files.outputs.changed_files, 'libs/langchain-textsplitters/')) | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - name: Setup pnpm | ||
# uses: pnpm/[email protected] | ||
# - name: Use Node.js ${{ env.NODE_VERSION }} | ||
# uses: actions/setup-node@v4 | ||
# with: | ||
# node-version: ${{ env.NODE_VERSION }} | ||
# - name: Install dependencies | ||
# run: pnpm install --frozen-lockfile | ||
# - name: Build required workspace packages | ||
# run: pnpm build --filter=@langchain/openai --filter=@langchain/anthropic --filter=@langchain/cohere --filter=@langchain/textsplitters | ||
# - name: Test LangChain with latest deps | ||
# run: docker compose -f dependency_range_tests/docker-compose.yml run langchain-latest-deps | ||
|
||
langchain-lowest-deps: | ||
runs-on: ubuntu-latest | ||
needs: get-changed-files | ||
if: (contains(needs.get-changed-files.outputs.changed_files, 'dependency_range_tests/scripts/langchain/') || contains(needs.get-changed-files.outputs.changed_files, 'libs/langchain/')) | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup pnpm | ||
uses: pnpm/[email protected] | ||
- name: Use Node.js ${{ env.NODE_VERSION }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ env.NODE_VERSION }} | ||
- name: Install dependencies | ||
run: pnpm install --frozen-lockfile | ||
- name: Build required workspace packages | ||
run: pnpm build --filter=@langchain/openai --filter=@langchain/anthropic --filter=@langchain/cohere --filter=@langchain/textsplitters | ||
- name: Test LangChain with lowest deps | ||
run: docker compose -f dependency_range_tests/docker-compose.yml run langchain-lowest-deps | ||
# langchain-lowest-deps: | ||
# runs-on: ubuntu-latest | ||
# needs: get-changed-files | ||
# if: (contains(needs.get-changed-files.outputs.changed_files, 'dependency_range_tests/scripts/langchain/') || contains(needs.get-changed-files.outputs.changed_files, 'libs/langchain/')) | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - name: Setup pnpm | ||
# uses: pnpm/[email protected] | ||
# - name: Use Node.js ${{ env.NODE_VERSION }} | ||
# uses: actions/setup-node@v4 | ||
# with: | ||
# node-version: ${{ env.NODE_VERSION }} | ||
# - name: Install dependencies | ||
# run: pnpm install --frozen-lockfile | ||
# - name: Build required workspace packages | ||
# run: pnpm build --filter=@langchain/openai --filter=@langchain/anthropic --filter=@langchain/cohere --filter=@langchain/textsplitters | ||
# - name: Test LangChain with lowest deps | ||
# run: docker compose -f dependency_range_tests/docker-compose.yml run langchain-lowest-deps | ||
|
||
# # Community | ||
# community-latest-deps: | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👀
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will make your TS code 🚀