@ai-sdk/google 4.0.0 → 4.0.2
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 +13 -0
- package/dist/index.js +9 -9
- package/dist/index.js.map +1 -1
- package/dist/internal/index.js +4 -4
- package/dist/internal/index.js.map +1 -1
- package/package.json +4 -4
- package/src/google-files.ts +5 -7
- package/src/google-video-model-options.ts +16 -18
- package/src/tool/file-search.ts +26 -28
- package/src/tool/google-search.ts +14 -16
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @ai-sdk/google
|
|
2
2
|
|
|
3
|
+
## 4.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [6a436e3]
|
|
8
|
+
- @ai-sdk/provider-utils@5.0.1
|
|
9
|
+
|
|
10
|
+
## 4.0.1
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- ba6d510: chore: fix deprecated use of zod `.passthrough()`
|
|
15
|
+
|
|
3
16
|
## 4.0.0
|
|
4
17
|
|
|
5
18
|
### Major Changes
|
package/dist/index.js
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.
|
|
10
|
+
var VERSION = true ? "4.0.2" : "0.0.0-test";
|
|
11
11
|
|
|
12
12
|
// src/google-embedding-model.ts
|
|
13
13
|
import {
|
|
@@ -2703,7 +2703,7 @@ import {
|
|
|
2703
2703
|
zodSchema as zodSchema7
|
|
2704
2704
|
} from "@ai-sdk/provider-utils";
|
|
2705
2705
|
import { z as z8 } from "zod/v4";
|
|
2706
|
-
var fileSearchArgsBaseSchema = z8.
|
|
2706
|
+
var fileSearchArgsBaseSchema = z8.looseObject({
|
|
2707
2707
|
/** The names of the file_search_stores to retrieve from.
|
|
2708
2708
|
* Example: `fileSearchStores/my-file-search-store-123`
|
|
2709
2709
|
*/
|
|
@@ -2718,7 +2718,7 @@ var fileSearchArgsBaseSchema = z8.object({
|
|
|
2718
2718
|
metadataFilter: z8.string().describe(
|
|
2719
2719
|
"Metadata filter to apply to the file search retrieval documents. See https://google.aip.dev/160 for the syntax of the filter expression."
|
|
2720
2720
|
).optional()
|
|
2721
|
-
})
|
|
2721
|
+
});
|
|
2722
2722
|
var fileSearch = createProviderExecutedToolFactory3({
|
|
2723
2723
|
id: "google.file_search",
|
|
2724
2724
|
inputSchema: lazySchema7(() => zodSchema7(z8.object({}))),
|
|
@@ -2745,7 +2745,7 @@ import {
|
|
|
2745
2745
|
zodSchema as zodSchema9
|
|
2746
2746
|
} from "@ai-sdk/provider-utils";
|
|
2747
2747
|
import { z as z10 } from "zod/v4";
|
|
2748
|
-
var googleSearchToolArgsBaseSchema = z10.
|
|
2748
|
+
var googleSearchToolArgsBaseSchema = z10.looseObject({
|
|
2749
2749
|
searchTypes: z10.object({
|
|
2750
2750
|
webSearch: z10.object({}).optional(),
|
|
2751
2751
|
imageSearch: z10.object({}).optional()
|
|
@@ -2754,7 +2754,7 @@ var googleSearchToolArgsBaseSchema = z10.object({
|
|
|
2754
2754
|
startTime: z10.string(),
|
|
2755
2755
|
endTime: z10.string()
|
|
2756
2756
|
}).optional()
|
|
2757
|
-
})
|
|
2757
|
+
});
|
|
2758
2758
|
var googleSearch = createProviderExecutedToolFactory5({
|
|
2759
2759
|
id: "google.google_search",
|
|
2760
2760
|
inputSchema: lazySchema9(() => zodSchema9(z10.object({}))),
|
|
@@ -3314,11 +3314,11 @@ var googleFileResponseSchema = lazySchema14(
|
|
|
3314
3314
|
);
|
|
3315
3315
|
var googleFilesUploadOptionsSchema = lazySchema14(
|
|
3316
3316
|
() => zodSchema14(
|
|
3317
|
-
z15.
|
|
3317
|
+
z15.looseObject({
|
|
3318
3318
|
displayName: z15.string().nullish(),
|
|
3319
3319
|
pollIntervalMs: z15.number().positive().nullish(),
|
|
3320
3320
|
pollTimeoutMs: z15.number().positive().nullish()
|
|
3321
|
-
})
|
|
3321
|
+
})
|
|
3322
3322
|
)
|
|
3323
3323
|
);
|
|
3324
3324
|
|
|
@@ -3344,7 +3344,7 @@ import { lazySchema as lazySchema15, zodSchema as zodSchema15 } from "@ai-sdk/pr
|
|
|
3344
3344
|
import { z as z16 } from "zod/v4";
|
|
3345
3345
|
var googleVideoModelOptionsSchema = lazySchema15(
|
|
3346
3346
|
() => zodSchema15(
|
|
3347
|
-
z16.
|
|
3347
|
+
z16.looseObject({
|
|
3348
3348
|
pollIntervalMs: z16.number().positive().nullish(),
|
|
3349
3349
|
pollTimeoutMs: z16.number().positive().nullish(),
|
|
3350
3350
|
personGeneration: z16.enum(["dont_allow", "allow_adult", "allow_all"]).nullish(),
|
|
@@ -3355,7 +3355,7 @@ var googleVideoModelOptionsSchema = lazySchema15(
|
|
|
3355
3355
|
gcsUri: z16.string().nullish()
|
|
3356
3356
|
})
|
|
3357
3357
|
).nullish()
|
|
3358
|
-
})
|
|
3358
|
+
})
|
|
3359
3359
|
)
|
|
3360
3360
|
);
|
|
3361
3361
|
|