ai 6.0.141 → 6.0.142
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 +8 -0
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -1
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +1 -1
- package/dist/internal/index.mjs +1 -1
- package/docs/03-agents/01-overview.mdx +1 -3
- package/docs/03-agents/02-building-agents.mdx +3 -4
- package/docs/03-agents/04-loop-control.mdx +35 -2
- package/docs/03-agents/06-memory.mdx +1 -2
- package/docs/03-ai-sdk-core/15-tools-and-tool-calling.mdx +8 -0
- package/docs/03-ai-sdk-core/35-image-generation.mdx +18 -18
- package/docs/03-ai-sdk-core/38-video-generation.mdx +24 -24
- package/docs/07-reference/01-ai-sdk-core/10-generate-image.mdx +2 -1
- package/docs/07-reference/01-ai-sdk-core/13-generate-video.mdx +2 -1
- package/docs/07-reference/01-ai-sdk-core/72-loop-finished.mdx +83 -0
- package/docs/07-reference/01-ai-sdk-core/index.mdx +18 -0
- package/package.json +2 -2
- package/src/generate-text/index.ts +6 -1
- package/src/generate-text/stop-condition.ts +4 -0
package/dist/index.mjs
CHANGED
|
@@ -1122,7 +1122,7 @@ import {
|
|
|
1122
1122
|
} from "@ai-sdk/provider-utils";
|
|
1123
1123
|
|
|
1124
1124
|
// src/version.ts
|
|
1125
|
-
var VERSION = true ? "6.0.
|
|
1125
|
+
var VERSION = true ? "6.0.142" : "0.0.0-test";
|
|
1126
1126
|
|
|
1127
1127
|
// src/util/download/download.ts
|
|
1128
1128
|
var download = async ({
|
|
@@ -3821,6 +3821,9 @@ var DefaultStepResult = class {
|
|
|
3821
3821
|
function stepCountIs(stepCount) {
|
|
3822
3822
|
return ({ steps }) => steps.length === stepCount;
|
|
3823
3823
|
}
|
|
3824
|
+
function isLoopFinished() {
|
|
3825
|
+
return () => false;
|
|
3826
|
+
}
|
|
3824
3827
|
function hasToolCall(toolName) {
|
|
3825
3828
|
return ({ steps }) => {
|
|
3826
3829
|
var _a21, _b, _c;
|
|
@@ -13488,6 +13491,7 @@ export {
|
|
|
13488
13491
|
isDataUIPart,
|
|
13489
13492
|
isDeepEqualData,
|
|
13490
13493
|
isFileUIPart,
|
|
13494
|
+
isLoopFinished,
|
|
13491
13495
|
isReasoningUIPart,
|
|
13492
13496
|
isStaticToolUIPart,
|
|
13493
13497
|
isTextUIPart,
|