Skip to content

Commit 23959ff

Browse files
authored
fix(tavily): pin zod to v3 to avoid "Type instantiation is excessively deep and possibly infinite" error (#8630)
2 parents d566491 + cc61e7b commit 23959ff

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

libs/langchain-tavily/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@langchain/tavily",
3-
"version": "0.1.4",
3+
"version": "0.1.5",
44
"description": "Tavily integration for LangChain.js",
55
"type": "module",
66
"engines": {
@@ -84,4 +84,4 @@
8484
"dependencies": {
8585
"zod": "^3.25.32"
8686
}
87-
}
87+
}

libs/langchain-tavily/src/tavily-crawl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { CallbackManagerForToolRun } from "@langchain/core/callbacks/manager";
22
import { StructuredTool, ToolParams } from "@langchain/core/tools";
3-
import { z } from "zod";
3+
import { z } from "zod/v3";
44
import { InferInteropZodOutput } from "@langchain/core/dist/utils/types/zod.js";
55
import {
66
TavilyCrawlAPIWrapper,

libs/langchain-tavily/src/tavily-extract.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { CallbackManagerForToolRun } from "@langchain/core/callbacks/manager";
22
import { StructuredTool, ToolParams } from "@langchain/core/tools";
3-
import { z } from "zod";
3+
import { z } from "zod/v3";
44
import { InferInteropZodOutput } from "@langchain/core/dist/utils/types/zod.js";
55
import {
66
TavilyExtractAPIWrapper,

libs/langchain-tavily/src/tavily-map.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { CallbackManagerForToolRun } from "@langchain/core/callbacks/manager";
22
import { StructuredTool, ToolParams } from "@langchain/core/tools";
3-
import { z } from "zod";
3+
import { z } from "zod/v3";
44
import { InferInteropZodOutput } from "@langchain/core/dist/utils/types/zod.js";
55
import {
66
TavilyMapAPIWrapper,

libs/langchain-tavily/src/tavily-search.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { z } from "zod";
1+
import { z } from "zod/v3";
22
import { CallbackManagerForToolRun } from "@langchain/core/callbacks/manager";
33
import { StructuredTool, ToolParams } from "@langchain/core/tools";
44
import { InferInteropZodOutput } from "@langchain/core/utils/types";

0 commit comments

Comments
 (0)