Skip to content
Discussion options

You must be logged in to vote

You can provide a finished tool that the agent can call to let you know is done, and use stopWhen: hasToolCall('finish')

https://ai-sdk.dev/docs/reference/ai-sdk-core/stream-text#stop-when

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@th0x11
Comment options

Answer selected by th0x11
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants