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/CHANGELOG.md +9 -0
- package/dist/index.js +10 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -2
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +1 -1
- package/dist/internal/index.mjs +1 -1
- package/docs/03-ai-sdk-core/15-tools-and-tool-calling.mdx +1 -1
- package/docs/07-reference/01-ai-sdk-core/20-tool.mdx +1 -1
- package/docs/07-reference/01-ai-sdk-core/22-dynamic-tool.mdx +1 -1
- package/package.json +3 -3
- package/src/generate-text/generate-text.ts +10 -1
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.
|
|
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 (
|
|
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,
|