@ai-sdk/gateway 3.0.180 → 3.0.183

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.mjs CHANGED
@@ -2223,13 +2223,19 @@ import {
2223
2223
  } from "@ai-sdk/provider-utils";
2224
2224
  import { z as z18 } from "zod";
2225
2225
  var takoDataSourceInputSchema = z18.object({
2226
- count: z18.number().optional().describe("Maximum number of data cards to return (1-20)."),
2227
- include_contents: z18.boolean().optional().describe("Inline underlying card data. This can add a data charge."),
2226
+ count: z18.number().optional().describe(
2227
+ "Maximum number of data results to return (1-20). When include_contents is true, each additional result adds its own data surcharge."
2228
+ ),
2229
+ include_contents: z18.boolean().optional().describe(
2230
+ "Inline rows for each data result. This adds a data surcharge based on row count and dataset source. To estimate cost, search with include_contents disabled and inspect cards.content.export_pricing. This applies to every returned card; limit sources.data.count and sources.data.max_rows to control cost."
2231
+ ),
2228
2232
  mode: z18.enum(["inline", "url"]).optional().describe(
2229
2233
  "Requested data delivery mode. Search card data is always inline."
2230
2234
  ),
2231
2235
  content_format: z18.enum(["card_json", "csv", "json_compact", "json_records"]).optional().describe("Serialization for inlined card data."),
2232
- max_rows: z18.number().optional().describe("Maximum rows for inlined card data."),
2236
+ max_rows: z18.number().optional().describe(
2237
+ "Maximum rows to inline per result. Omit to use the allowance in cards.content.export_pricing. A data surcharge applies per 1,000 exported rows; lower values reduce cost."
2238
+ ),
2233
2239
  node_ids: z18.array(z18.string()).optional().describe("Data Graph node IDs to prioritize. Maximum 20."),
2234
2240
  strict: z18.boolean().optional().describe(
2235
2241
  "Only return cards matching node_ids. Requires a non-empty node_ids."
@@ -2361,7 +2367,6 @@ var takoCardSchema = z18.object({
2361
2367
  relevance: z18.enum(["High", "Low", "Medium"]).nullish(),
2362
2368
  content: takoResultContentSchema.nullish(),
2363
2369
  exportable: z18.boolean().optional(),
2364
- relevance_score: z18.number().nullish(),
2365
2370
  nodes: z18.array(
2366
2371
  z18.object({
2367
2372
  id: z18.string(),
@@ -2383,8 +2388,7 @@ var takoWebResultSchema = z18.object({
2383
2388
  snippet: z18.string().nullish(),
2384
2389
  source_name: z18.string().nullish(),
2385
2390
  publish_date: z18.string().nullish(),
2386
- content: takoResultContentSchema.nullish(),
2387
- citation_number: z18.number().nullish()
2391
+ content: takoResultContentSchema.nullish()
2388
2392
  }).passthrough();
2389
2393
  var takoSearchOutputSchema = lazySchema13(
2390
2394
  () => zodSchema13(
@@ -2470,7 +2474,7 @@ async function getVercelRequestId() {
2470
2474
  }
2471
2475
 
2472
2476
  // src/version.ts
2473
- var VERSION = true ? "3.0.180" : "0.0.0-test";
2477
+ var VERSION = true ? "3.0.183" : "0.0.0-test";
2474
2478
 
2475
2479
  // src/gateway-provider.ts
2476
2480
  var AI_GATEWAY_PROTOCOL_VERSION = "0.0.1";