@ai-sdk/google 3.0.0-beta.83 → 3.0.0-beta.84

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.0-beta.84
4
+
5
+ ### Patch Changes
6
+
7
+ - fd788ce: fix(provider/google): preserve nested empty object schemas and descriptions in tool parameters
8
+
3
9
  ## 3.0.0-beta.83
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -30,7 +30,7 @@ module.exports = __toCommonJS(src_exports);
30
30
  var import_provider_utils15 = require("@ai-sdk/provider-utils");
31
31
 
32
32
  // src/version.ts
33
- var VERSION = true ? "3.0.0-beta.83" : "0.0.0-test";
33
+ var VERSION = true ? "3.0.0-beta.84" : "0.0.0-test";
34
34
 
35
35
  // src/google-generative-ai-embedding-model.ts
36
36
  var import_provider = require("@ai-sdk/provider");
@@ -255,6 +255,9 @@ function convertJSONSchemaToOpenAPISchema(jsonSchema, isRoot = true) {
255
255
  if (isRoot) {
256
256
  return void 0;
257
257
  }
258
+ if (typeof jsonSchema === "object" && jsonSchema.description) {
259
+ return { type: "object", description: jsonSchema.description };
260
+ }
258
261
  return { type: "object" };
259
262
  }
260
263
  if (typeof jsonSchema === "boolean") {