ai 6.0.0-beta.98 → 6.0.0-beta.99

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/dist/index.mjs CHANGED
@@ -757,7 +757,7 @@ import {
757
757
  } from "@ai-sdk/provider-utils";
758
758
 
759
759
  // src/version.ts
760
- var VERSION = true ? "6.0.0-beta.98" : "0.0.0-test";
760
+ var VERSION = true ? "6.0.0-beta.99" : "0.0.0-test";
761
761
 
762
762
  // src/util/download/download.ts
763
763
  var download = async ({ url }) => {
@@ -6634,14 +6634,26 @@ var ToolLoopAgent = class {
6634
6634
  /**
6635
6635
  * Generates an output from the agent (non-streaming).
6636
6636
  */
6637
- async generate(options) {
6638
- return generateText(await this.prepareCall(options));
6637
+ async generate({
6638
+ abortSignal,
6639
+ ...options
6640
+ }) {
6641
+ return generateText({
6642
+ ...await this.prepareCall(options),
6643
+ abortSignal
6644
+ });
6639
6645
  }
6640
6646
  /**
6641
6647
  * Streams an output from the agent (streaming).
6642
6648
  */
6643
- async stream(options) {
6644
- return streamText(await this.prepareCall(options));
6649
+ async stream({
6650
+ abortSignal,
6651
+ ...options
6652
+ }) {
6653
+ return streamText({
6654
+ ...await this.prepareCall(options),
6655
+ abortSignal
6656
+ });
6645
6657
  }
6646
6658
  };
6647
6659