ai 6.0.0-beta.54 → 6.0.0-beta.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,11 @@
1
1
  # ai
2
2
 
3
+ ## 6.0.0-beta.55
4
+
5
+ ### Patch Changes
6
+
7
+ - 42cf7ed: fix(agent): use tool.toModelOutput when available
8
+
3
9
  ## 6.0.0-beta.54
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -870,7 +870,7 @@ function detectMediaType({
870
870
  var import_provider_utils2 = require("@ai-sdk/provider-utils");
871
871
 
872
872
  // src/version.ts
873
- var VERSION = true ? "6.0.0-beta.54" : "0.0.0-test";
873
+ var VERSION = true ? "6.0.0-beta.55" : "0.0.0-test";
874
874
 
875
875
  // src/util/download/download.ts
876
876
  var download = async ({ url }) => {
@@ -6498,7 +6498,9 @@ var BasicAgent = class {
6498
6498
  */
6499
6499
  respond(options) {
6500
6500
  return this.stream({
6501
- prompt: convertToModelMessages(options.messages)
6501
+ prompt: convertToModelMessages(options.messages, {
6502
+ tools: this.tools
6503
+ })
6502
6504
  }).toUIMessageStreamResponse();
6503
6505
  }
6504
6506
  };