@ai-sdk/google 4.0.0-beta.19 → 4.0.0-beta.20

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @ai-sdk/google
2
2
 
3
+ ## 4.0.0-beta.20
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [986c6fd]
8
+ - Updated dependencies [493295c]
9
+ - @ai-sdk/provider-utils@5.0.0-beta.8
10
+
3
11
  ## 4.0.0-beta.19
4
12
 
5
13
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -251,7 +251,7 @@ declare const googleTools: {
251
251
  startTime: string;
252
252
  endTime: string;
253
253
  } | undefined;
254
- }>;
254
+ }, {}>;
255
255
  /**
256
256
  * Creates an Enterprise Web Search tool for grounding responses using a compliance-focused web index.
257
257
  * Designed for highly-regulated industries (finance, healthcare, public sector).
@@ -262,7 +262,7 @@ declare const googleTools: {
262
262
  *
263
263
  * @see https://cloud.google.com/vertex-ai/generative-ai/docs/grounding/web-grounding-enterprise
264
264
  */
265
- enterpriseWebSearch: _ai_sdk_provider_utils.ProviderToolFactory<{}, {}>;
265
+ enterpriseWebSearch: _ai_sdk_provider_utils.ProviderToolFactory<{}, {}, {}>;
266
266
  /**
267
267
  * Creates a Google Maps grounding tool that gives the model access to Google Maps data.
268
268
  * Must have name "google_maps".
@@ -270,12 +270,12 @@ declare const googleTools: {
270
270
  * @see https://ai.google.dev/gemini-api/docs/maps-grounding
271
271
  * @see https://cloud.google.com/vertex-ai/generative-ai/docs/grounding/grounding-with-google-maps
272
272
  */
273
- googleMaps: _ai_sdk_provider_utils.ProviderToolFactory<{}, {}>;
273
+ googleMaps: _ai_sdk_provider_utils.ProviderToolFactory<{}, {}, {}>;
274
274
  /**
275
275
  * Creates a URL context tool that gives Google direct access to real-time web content.
276
276
  * Must have name "url_context".
277
277
  */
278
- urlContext: _ai_sdk_provider_utils.ProviderToolFactory<{}, {}>;
278
+ urlContext: _ai_sdk_provider_utils.ProviderToolFactory<{}, {}, {}>;
279
279
  /**
280
280
  * Enables Retrieval Augmented Generation (RAG) via the Gemini File Search tool.
281
281
  * Must have name "file_search".
@@ -291,7 +291,7 @@ declare const googleTools: {
291
291
  fileSearchStoreNames: string[];
292
292
  topK?: number | undefined;
293
293
  metadataFilter?: string | undefined;
294
- }>;
294
+ }, {}>;
295
295
  /**
296
296
  * A tool that enables the model to generate and run Python code.
297
297
  * Must have name "code_execution".
@@ -308,7 +308,7 @@ declare const googleTools: {
308
308
  }, {
309
309
  outcome: string;
310
310
  output: string;
311
- }, {}>;
311
+ }, {}, {}>;
312
312
  /**
313
313
  * Creates a Vertex RAG Store tool that enables the model to perform RAG searches against a Vertex RAG Store.
314
314
  * Must have name "vertex_rag_store".
@@ -316,7 +316,7 @@ declare const googleTools: {
316
316
  vertexRagStore: _ai_sdk_provider_utils.ProviderToolFactory<{}, {
317
317
  ragCorpus: string;
318
318
  topK?: number;
319
- }>;
319
+ }, {}>;
320
320
  };
321
321
 
322
322
  interface GoogleGenerativeAIProvider extends ProviderV4 {
package/dist/index.d.ts CHANGED
@@ -251,7 +251,7 @@ declare const googleTools: {
251
251
  startTime: string;
252
252
  endTime: string;
253
253
  } | undefined;
254
- }>;
254
+ }, {}>;
255
255
  /**
256
256
  * Creates an Enterprise Web Search tool for grounding responses using a compliance-focused web index.
257
257
  * Designed for highly-regulated industries (finance, healthcare, public sector).
@@ -262,7 +262,7 @@ declare const googleTools: {
262
262
  *
263
263
  * @see https://cloud.google.com/vertex-ai/generative-ai/docs/grounding/web-grounding-enterprise
264
264
  */
265
- enterpriseWebSearch: _ai_sdk_provider_utils.ProviderToolFactory<{}, {}>;
265
+ enterpriseWebSearch: _ai_sdk_provider_utils.ProviderToolFactory<{}, {}, {}>;
266
266
  /**
267
267
  * Creates a Google Maps grounding tool that gives the model access to Google Maps data.
268
268
  * Must have name "google_maps".
@@ -270,12 +270,12 @@ declare const googleTools: {
270
270
  * @see https://ai.google.dev/gemini-api/docs/maps-grounding
271
271
  * @see https://cloud.google.com/vertex-ai/generative-ai/docs/grounding/grounding-with-google-maps
272
272
  */
273
- googleMaps: _ai_sdk_provider_utils.ProviderToolFactory<{}, {}>;
273
+ googleMaps: _ai_sdk_provider_utils.ProviderToolFactory<{}, {}, {}>;
274
274
  /**
275
275
  * Creates a URL context tool that gives Google direct access to real-time web content.
276
276
  * Must have name "url_context".
277
277
  */
278
- urlContext: _ai_sdk_provider_utils.ProviderToolFactory<{}, {}>;
278
+ urlContext: _ai_sdk_provider_utils.ProviderToolFactory<{}, {}, {}>;
279
279
  /**
280
280
  * Enables Retrieval Augmented Generation (RAG) via the Gemini File Search tool.
281
281
  * Must have name "file_search".
@@ -291,7 +291,7 @@ declare const googleTools: {
291
291
  fileSearchStoreNames: string[];
292
292
  topK?: number | undefined;
293
293
  metadataFilter?: string | undefined;
294
- }>;
294
+ }, {}>;
295
295
  /**
296
296
  * A tool that enables the model to generate and run Python code.
297
297
  * Must have name "code_execution".
@@ -308,7 +308,7 @@ declare const googleTools: {
308
308
  }, {
309
309
  outcome: string;
310
310
  output: string;
311
- }, {}>;
311
+ }, {}, {}>;
312
312
  /**
313
313
  * Creates a Vertex RAG Store tool that enables the model to perform RAG searches against a Vertex RAG Store.
314
314
  * Must have name "vertex_rag_store".
@@ -316,7 +316,7 @@ declare const googleTools: {
316
316
  vertexRagStore: _ai_sdk_provider_utils.ProviderToolFactory<{}, {
317
317
  ragCorpus: string;
318
318
  topK?: number;
319
- }>;
319
+ }, {}>;
320
320
  };
321
321
 
322
322
  interface GoogleGenerativeAIProvider extends ProviderV4 {
package/dist/index.js CHANGED
@@ -30,7 +30,7 @@ module.exports = __toCommonJS(index_exports);
30
30
  var import_provider_utils16 = require("@ai-sdk/provider-utils");
31
31
 
32
32
  // src/version.ts
33
- var VERSION = true ? "4.0.0-beta.19" : "0.0.0-test";
33
+ var VERSION = true ? "4.0.0-beta.20" : "0.0.0-test";
34
34
 
35
35
  // src/google-generative-ai-embedding-model.ts
36
36
  var import_provider = require("@ai-sdk/provider");
package/dist/index.mjs CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  } from "@ai-sdk/provider-utils";
8
8
 
9
9
  // src/version.ts
10
- var VERSION = true ? "4.0.0-beta.19" : "0.0.0-test";
10
+ var VERSION = true ? "4.0.0-beta.20" : "0.0.0-test";
11
11
 
12
12
  // src/google-generative-ai-embedding-model.ts
13
13
  import {
@@ -231,7 +231,7 @@ declare const googleTools: {
231
231
  startTime: string;
232
232
  endTime: string;
233
233
  } | undefined;
234
- }>;
234
+ }, {}>;
235
235
  /**
236
236
  * Creates an Enterprise Web Search tool for grounding responses using a compliance-focused web index.
237
237
  * Designed for highly-regulated industries (finance, healthcare, public sector).
@@ -242,7 +242,7 @@ declare const googleTools: {
242
242
  *
243
243
  * @see https://cloud.google.com/vertex-ai/generative-ai/docs/grounding/web-grounding-enterprise
244
244
  */
245
- enterpriseWebSearch: _ai_sdk_provider_utils.ProviderToolFactory<{}, {}>;
245
+ enterpriseWebSearch: _ai_sdk_provider_utils.ProviderToolFactory<{}, {}, {}>;
246
246
  /**
247
247
  * Creates a Google Maps grounding tool that gives the model access to Google Maps data.
248
248
  * Must have name "google_maps".
@@ -250,12 +250,12 @@ declare const googleTools: {
250
250
  * @see https://ai.google.dev/gemini-api/docs/maps-grounding
251
251
  * @see https://cloud.google.com/vertex-ai/generative-ai/docs/grounding/grounding-with-google-maps
252
252
  */
253
- googleMaps: _ai_sdk_provider_utils.ProviderToolFactory<{}, {}>;
253
+ googleMaps: _ai_sdk_provider_utils.ProviderToolFactory<{}, {}, {}>;
254
254
  /**
255
255
  * Creates a URL context tool that gives Google direct access to real-time web content.
256
256
  * Must have name "url_context".
257
257
  */
258
- urlContext: _ai_sdk_provider_utils.ProviderToolFactory<{}, {}>;
258
+ urlContext: _ai_sdk_provider_utils.ProviderToolFactory<{}, {}, {}>;
259
259
  /**
260
260
  * Enables Retrieval Augmented Generation (RAG) via the Gemini File Search tool.
261
261
  * Must have name "file_search".
@@ -271,7 +271,7 @@ declare const googleTools: {
271
271
  fileSearchStoreNames: string[];
272
272
  topK?: number | undefined;
273
273
  metadataFilter?: string | undefined;
274
- }>;
274
+ }, {}>;
275
275
  /**
276
276
  * A tool that enables the model to generate and run Python code.
277
277
  * Must have name "code_execution".
@@ -288,7 +288,7 @@ declare const googleTools: {
288
288
  }, {
289
289
  outcome: string;
290
290
  output: string;
291
- }, {}>;
291
+ }, {}, {}>;
292
292
  /**
293
293
  * Creates a Vertex RAG Store tool that enables the model to perform RAG searches against a Vertex RAG Store.
294
294
  * Must have name "vertex_rag_store".
@@ -296,7 +296,7 @@ declare const googleTools: {
296
296
  vertexRagStore: _ai_sdk_provider_utils.ProviderToolFactory<{}, {
297
297
  ragCorpus: string;
298
298
  topK?: number;
299
- }>;
299
+ }, {}>;
300
300
  };
301
301
 
302
302
  export { GoogleGenerativeAILanguageModel, type GoogleGenerativeAIModelId, type GroundingMetadataSchema, type PromptFeedbackSchema, type SafetyRatingSchema, type UrlContextMetadataSchema, type UsageMetadataSchema, getGroundingMetadataSchema, getUrlContextMetadataSchema, googleTools };
@@ -231,7 +231,7 @@ declare const googleTools: {
231
231
  startTime: string;
232
232
  endTime: string;
233
233
  } | undefined;
234
- }>;
234
+ }, {}>;
235
235
  /**
236
236
  * Creates an Enterprise Web Search tool for grounding responses using a compliance-focused web index.
237
237
  * Designed for highly-regulated industries (finance, healthcare, public sector).
@@ -242,7 +242,7 @@ declare const googleTools: {
242
242
  *
243
243
  * @see https://cloud.google.com/vertex-ai/generative-ai/docs/grounding/web-grounding-enterprise
244
244
  */
245
- enterpriseWebSearch: _ai_sdk_provider_utils.ProviderToolFactory<{}, {}>;
245
+ enterpriseWebSearch: _ai_sdk_provider_utils.ProviderToolFactory<{}, {}, {}>;
246
246
  /**
247
247
  * Creates a Google Maps grounding tool that gives the model access to Google Maps data.
248
248
  * Must have name "google_maps".
@@ -250,12 +250,12 @@ declare const googleTools: {
250
250
  * @see https://ai.google.dev/gemini-api/docs/maps-grounding
251
251
  * @see https://cloud.google.com/vertex-ai/generative-ai/docs/grounding/grounding-with-google-maps
252
252
  */
253
- googleMaps: _ai_sdk_provider_utils.ProviderToolFactory<{}, {}>;
253
+ googleMaps: _ai_sdk_provider_utils.ProviderToolFactory<{}, {}, {}>;
254
254
  /**
255
255
  * Creates a URL context tool that gives Google direct access to real-time web content.
256
256
  * Must have name "url_context".
257
257
  */
258
- urlContext: _ai_sdk_provider_utils.ProviderToolFactory<{}, {}>;
258
+ urlContext: _ai_sdk_provider_utils.ProviderToolFactory<{}, {}, {}>;
259
259
  /**
260
260
  * Enables Retrieval Augmented Generation (RAG) via the Gemini File Search tool.
261
261
  * Must have name "file_search".
@@ -271,7 +271,7 @@ declare const googleTools: {
271
271
  fileSearchStoreNames: string[];
272
272
  topK?: number | undefined;
273
273
  metadataFilter?: string | undefined;
274
- }>;
274
+ }, {}>;
275
275
  /**
276
276
  * A tool that enables the model to generate and run Python code.
277
277
  * Must have name "code_execution".
@@ -288,7 +288,7 @@ declare const googleTools: {
288
288
  }, {
289
289
  outcome: string;
290
290
  output: string;
291
- }, {}>;
291
+ }, {}, {}>;
292
292
  /**
293
293
  * Creates a Vertex RAG Store tool that enables the model to perform RAG searches against a Vertex RAG Store.
294
294
  * Must have name "vertex_rag_store".
@@ -296,7 +296,7 @@ declare const googleTools: {
296
296
  vertexRagStore: _ai_sdk_provider_utils.ProviderToolFactory<{}, {
297
297
  ragCorpus: string;
298
298
  topK?: number;
299
- }>;
299
+ }, {}>;
300
300
  };
301
301
 
302
302
  export { GoogleGenerativeAILanguageModel, type GoogleGenerativeAIModelId, type GroundingMetadataSchema, type PromptFeedbackSchema, type SafetyRatingSchema, type UrlContextMetadataSchema, type UsageMetadataSchema, getGroundingMetadataSchema, getUrlContextMetadataSchema, googleTools };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/google",
3
- "version": "4.0.0-beta.19",
3
+ "version": "4.0.0-beta.20",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -37,7 +37,7 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@ai-sdk/provider": "4.0.0-beta.5",
40
- "@ai-sdk/provider-utils": "5.0.0-beta.7"
40
+ "@ai-sdk/provider-utils": "5.0.0-beta.8"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/node": "20.17.24",