@tavily/ai-sdk 0.3.1 → 0.4.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
@@ -9,7 +9,7 @@ type TavilySearchOptions = TavilyClientOptions & Partial<TavilySearchOptions$1>;
9
9
  */
10
10
  declare const tavilySearch: (options?: TavilySearchOptions) => ai.Tool<{
11
11
  query: string;
12
- searchDepth?: "basic" | "advanced" | undefined;
12
+ searchDepth?: "basic" | "advanced" | "fast" | "ultra-fast" | undefined;
13
13
  timeRange?: "year" | "month" | "week" | "day" | "y" | "m" | "w" | "d" | undefined;
14
14
  }, _tavily_core.TavilySearchResponse>;
15
15
 
package/dist/index.js CHANGED
@@ -6,8 +6,8 @@ var tavilySearch = (options = {}) => {
6
6
  const client = tavily({ ...options, clientSource: "ai-sdk" });
7
7
  const inputSchema = z.object({
8
8
  query: z.string().describe("The search query to look up on the web"),
9
- searchDepth: z.enum(["basic", "advanced"]).optional().describe(
10
- "The depth of the search - 'basic' for quick results, 'advanced' for comprehensive search"
9
+ searchDepth: z.enum(["basic", "advanced", "fast", "ultra-fast"]).optional().describe(
10
+ "The depth of the search - 'basic' for quick results, 'advanced' for comprehensive search, 'fast' for low latency with high relevance (BETA), 'ultra-fast' prioritizes latency above all (BETA)"
11
11
  ),
12
12
  timeRange: z.enum(["year", "month", "week", "day", "y", "m", "w", "d"]).optional().describe("Time range for search results")
13
13
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tavily/ai-sdk",
3
- "version": "0.3.1",
3
+ "version": "0.4.0",
4
4
  "description": "Tavily AI SDK tools - Search, Extract, Crawl, and Map",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",