guidance on how to implement tool confirmation responses in v5? #7215
Replies: 3 comments 1 reply
-
|
we are working on an updated docs page cc @nicoalbanese |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
@nikitatome there is a new approach to tool approvals which was merged a few days ago: #8541 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
This discussion was automatically locked because it has not been updated in over 30 days. If you still have questions about this topic, please ask us at community.vercel.com/ai-sdk |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In this v4 example, before running
streamTextwe process the parts of the lastMessage. What is the recommended way to do this in v5? When I'm trying to do this with this approach we're observing multiple assistant messages in the UI response (with beta.14) It's also unclear to me what order the messages are processed in. When streamText is waiting for a response, does the UI message stream's execute function rerun before continuing streamText?https://ai-sdk.dev/cookbook/next/human-in-the-loop#handle-confirmation-response
We could use prepareStep, however prepareStep's messages are modelMessages so I'm not sure we should be modifying them?
Beta Was this translation helpful? Give feedback.
All reactions