@tavily/ai-sdk 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -35,7 +35,6 @@ declare const tavilyCrawl: (options?: TavilyCrawlOptions) => ai.Tool<{
35
35
  extractDepth?: "basic" | "advanced" | undefined;
36
36
  instructions?: string | undefined;
37
37
  allowExternal?: boolean | undefined;
38
- query?: string | undefined;
39
38
  }, _tavily_core.TavilyCrawlResponse>;
40
39
 
41
40
  type TavilyMapOptions = TavilyClientOptions & Partial<TavilyMapOptions$1>;
package/dist/index.js CHANGED
@@ -73,8 +73,7 @@ var tavilyCrawl = (options = {}) => {
73
73
  instructions: z3.string().optional().describe(
74
74
  "Optional instructions to guide the crawler (e.g., 'only crawl blog posts', 'focus on product pages')"
75
75
  ),
76
- allowExternal: z3.boolean().optional().describe("Whether to allow crawling external domains (default: false)"),
77
- query: z3.string().optional().describe("User intent query for reranking extracted content chunks")
76
+ allowExternal: z3.boolean().optional().describe("Whether to allow crawling external domains (default: false)")
78
77
  });
79
78
  return tool3({
80
79
  description: "Crawl a website starting from a base URL to discover and extract content from multiple pages. Intelligently traverses links and extracts structured data at scale.",
@@ -84,8 +83,7 @@ var tavilyCrawl = (options = {}) => {
84
83
  maxDepth: inputMaxDepth,
85
84
  extractDepth: inputExtractDepth,
86
85
  instructions: inputInstructions,
87
- allowExternal: inputAllowExternal,
88
- query: inputQuery
86
+ allowExternal: inputAllowExternal
89
87
  }) => {
90
88
  return await client.crawl(url, {
91
89
  ...options,
@@ -93,7 +91,7 @@ var tavilyCrawl = (options = {}) => {
93
91
  extractDepth: inputExtractDepth ?? options.extractDepth,
94
92
  instructions: inputInstructions ?? options.instructions,
95
93
  allowExternal: inputAllowExternal ?? options.allowExternal,
96
- query: inputQuery ?? options.query
94
+ chunksPerSource: 3
97
95
  });
98
96
  }
99
97
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tavily/ai-sdk",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Tavily AI SDK tools - Search, Extract, Crawl, and Map",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -15,10 +15,6 @@
15
15
  "files": [
16
16
  "dist"
17
17
  ],
18
- "scripts": {
19
- "build": "tsup src/index.ts --format esm --dts",
20
- "prepublishOnly": "pnpm build"
21
- },
22
18
  "keywords": [
23
19
  "ai",
24
20
  "ai-sdk",
@@ -39,7 +35,6 @@
39
35
  "bugs": {
40
36
  "url": "https://github.com/tavily-ai/ai-sdk/issues"
41
37
  },
42
- "packageManager": "pnpm@10.8.0",
43
38
  "devDependencies": {
44
39
  "@ai-sdk/openai": "^2.0.71",
45
40
  "@types/node": "^24.10.1",
@@ -54,5 +49,8 @@
54
49
  "peerDependencies": {
55
50
  "ai": "^5.0.0",
56
51
  "zod": "^4.0.0"
52
+ },
53
+ "scripts": {
54
+ "build": "tsup src/index.ts --format esm --dts"
57
55
  }
58
- }
56
+ }