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
I'm trying to reconcile this implementation with the docs and am wondering why the streamUi method is not used. Instead, streamText is used and then its result is analyzed within a large if-else block where the correct UI is then sent via a stream created via createStreamableUI. Wouldn't streamUI have been cleaner, where the various tools could have been defined alongside their respective generate functions?
Thanks!
The text was updated successfully, but these errors were encountered:
vigie
changed the title
Why isn't streamUi used?
Why isn't streamUI used?
Jul 19, 2024
Hi, thanks for this work.
I'm trying to reconcile this implementation with the docs and am wondering why the
streamUi
method is not used. Instead,streamText
is used and then its result is analyzed within a large if-else block where the correct UI is then sent via a stream created viacreateStreamableUI
. Wouldn'tstreamUI
have been cleaner, where the various tools could have been defined alongside their respectivegenerate
functions?Thanks!
The text was updated successfully, but these errors were encountered: