guidance on how to implement tool confirmation responses in v5? #7215
Unanswered
nikitatome
asked this question in
Help
Replies: 1 comment 1 reply
-
we are working on an updated docs page cc @nicoalbanese |
Beta Was this translation helpful? Give feedback.
1 reply
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
streamText
we 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