@ai-sdk/amazon-bedrock 3.0.53 → 3.0.55

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,19 @@
1
1
  # @ai-sdk/amazon-bedrock
2
2
 
3
+ ## 3.0.55
4
+
5
+ ### Patch Changes
6
+
7
+ - cddda46: fix (provider/amazon-bedrock): deal gracefully with empty tool descriptions
8
+
9
+ ## 3.0.54
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [056c471]
14
+ - @ai-sdk/provider-utils@3.0.17
15
+ - @ai-sdk/anthropic@2.0.44
16
+
3
17
  ## 3.0.53
4
18
 
5
19
  ### Patch Changes
package/dist/index.js CHANGED
@@ -30,7 +30,7 @@ module.exports = __toCommonJS(src_exports);
30
30
  var import_provider_utils8 = require("@ai-sdk/provider-utils");
31
31
 
32
32
  // src/version.ts
33
- var VERSION = true ? "3.0.53" : "0.0.0-test";
33
+ var VERSION = true ? "3.0.55" : "0.0.0-test";
34
34
 
35
35
  // src/bedrock-provider.ts
36
36
  var import_internal2 = require("@ai-sdk/anthropic/internal");
@@ -187,6 +187,7 @@ async function prepareTools({
187
187
  toolChoice,
188
188
  modelId
189
189
  }) {
190
+ var _a;
190
191
  const toolWarnings = [];
191
192
  const betas = /* @__PURE__ */ new Set();
192
193
  if (tools == null || tools.length === 0) {
@@ -275,7 +276,7 @@ async function prepareTools({
275
276
  bedrockTools.push({
276
277
  toolSpec: {
277
278
  name: tool.name,
278
- description: tool.description,
279
+ ...((_a = tool.description) == null ? void 0 : _a.trim()) !== "" ? { description: tool.description } : {},
279
280
  inputSchema: {
280
281
  json: tool.inputSchema
281
282
  }