@ai-sdk/google 3.0.92 → 3.0.93

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,11 @@
1
1
  # @ai-sdk/google
2
2
 
3
+ ## 3.0.93
4
+
5
+ ### Patch Changes
6
+
7
+ - cfba690: Allow google.interactions agent requests to include supported tools, including file_search.
8
+
3
9
  ## 3.0.92
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -30,7 +30,7 @@ module.exports = __toCommonJS(index_exports);
30
30
  var import_provider_utils23 = require("@ai-sdk/provider-utils");
31
31
 
32
32
  // src/version.ts
33
- var VERSION = true ? "3.0.92" : "0.0.0-test";
33
+ var VERSION = true ? "3.0.93" : "0.0.0-test";
34
34
 
35
35
  // src/google-generative-ai-embedding-model.ts
36
36
  var import_provider = require("@ai-sdk/provider");
@@ -5695,12 +5695,7 @@ var GoogleInteractionsLanguageModel = class {
5695
5695
  const hasTools = options.tools != null && options.tools.length > 0;
5696
5696
  let toolsForBody;
5697
5697
  let toolChoiceForBody;
5698
- if (hasTools && isAgent) {
5699
- warnings.push({
5700
- type: "other",
5701
- message: "google.interactions: tools are not supported when an agent is set; tools will be omitted from the request body."
5702
- });
5703
- } else if (hasTools) {
5698
+ if (hasTools) {
5704
5699
  const prepared = prepareGoogleInteractionsTools({
5705
5700
  tools: options.tools,
5706
5701
  toolChoice: options.toolChoice