ai 6.0.229 → 6.0.230

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
@@ -1171,7 +1171,7 @@ import {
1171
1171
  } from "@ai-sdk/provider-utils";
1172
1172
 
1173
1173
  // src/version.ts
1174
- var VERSION = true ? "6.0.229" : "0.0.0-test";
1174
+ var VERSION = true ? "6.0.230" : "0.0.0-test";
1175
1175
 
1176
1176
  // src/util/download/download.ts
1177
1177
  var download = async ({
@@ -4768,7 +4768,15 @@ async function generateText({
4768
4768
  if (tool2 == null) {
4769
4769
  continue;
4770
4770
  }
4771
- if ((tool2 == null ? void 0 : tool2.onInputAvailable) != null) {
4771
+ if (tool2.onInputStart != null) {
4772
+ await tool2.onInputStart({
4773
+ toolCallId: toolCall.toolCallId,
4774
+ messages: stepInputMessages,
4775
+ abortSignal: mergedAbortSignal,
4776
+ experimental_context
4777
+ });
4778
+ }
4779
+ if (tool2.onInputAvailable != null) {
4772
4780
  await tool2.onInputAvailable({
4773
4781
  input: toolCall.input,
4774
4782
  toolCallId: toolCall.toolCallId,