@ai-sdk/google 4.0.14 → 4.0.16

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,18 @@
1
1
  # @ai-sdk/google
2
2
 
3
+ ## 4.0.16
4
+
5
+ ### Patch Changes
6
+
7
+ - 662ddfc: Allow google.interactions agent requests to include supported tools, including file_search.
8
+
9
+ ## 4.0.15
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [31c7be8]
14
+ - @ai-sdk/provider-utils@5.0.10
15
+
3
16
  ## 4.0.14
4
17
 
5
18
  ### Patch 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.14" : "0.0.0-test";
10
+ var VERSION = true ? "4.0.16" : "0.0.0-test";
11
11
 
12
12
  // src/google-embedding-model.ts
13
13
  import {
@@ -6414,12 +6414,7 @@ var GoogleInteractionsLanguageModel = class _GoogleInteractionsLanguageModel {
6414
6414
  const hasTools = options.tools != null && options.tools.length > 0;
6415
6415
  let toolsForBody;
6416
6416
  let toolChoiceForBody;
6417
- if (hasTools && isAgent) {
6418
- warnings.push({
6419
- type: "other",
6420
- message: "google.interactions: tools are not supported when an agent is set; tools will be omitted from the request body."
6421
- });
6422
- } else if (hasTools) {
6417
+ if (hasTools) {
6423
6418
  const prepared = prepareGoogleInteractionsTools({
6424
6419
  tools: options.tools,
6425
6420
  toolChoice: options.toolChoice