You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Background
Some APIs changed and v5 site is launched.
## Summary
Updated continueUntil to stopWhen and added reference to new v5 site.
## Tasks
- [x] Formatting issues have been fixed (run `pnpm prettier-fix` in the
project root)
Copy file name to clipboardExpand all lines: content/docs/01-announcing-ai-sdk-5-alpha/index.mdx
+9-6Lines changed: 9 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,8 @@ description: Get started with the Alpha version of AI SDK 5.
8
8
<Notetype="warning">
9
9
This is an early preview — AI SDK 5 is under active development. APIs may
10
10
change without notice. Pin to specific versions as breaking changes may occur
11
-
even in patch releases.
11
+
even in patch releases. To learn more, check out the [v5
12
+
docs](https://v5.ai-sdk.dev)
12
13
</Note>
13
14
14
15
## Alpha Version Guidance
@@ -34,6 +35,8 @@ During this Alpha phase, we expect to make significant, potentially breaking cha
34
35
reliable.
35
36
</Note>
36
37
38
+
To learn more, check out the [v5 docs](https://v5.ai-sdk.dev).
39
+
37
40
## Installation
38
41
39
42
To install the AI SDK 5 - Alpha, run the following command:
@@ -348,9 +351,9 @@ const result = await generateText({
348
351
349
352
This makes it easier to build AI systems that adapt their capabilities based on the current context and task requirements.
350
353
351
-
### continueUntil
354
+
### `stopWhen`
352
355
353
-
The `continueUntil` parameter lets you define stopping conditions for your agent. Instead of running indefinitely, you can specify exactly when the agent should terminate based on various conditions:
356
+
The `stopWhen` parameter lets you define stopping conditions for your agent. Instead of running indefinitely, you can specify exactly when the agent should terminate based on various conditions:
354
357
355
358
- Reaching a maximum number of steps
356
359
- Calling a specific tool
@@ -360,19 +363,19 @@ The `continueUntil` parameter lets you define stopping conditions for your agent
0 commit comments