Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why isn't streamUI used? #34

Open
vigie opened this issue Jul 19, 2024 · 0 comments
Open

Why isn't streamUI used? #34

vigie opened this issue Jul 19, 2024 · 0 comments

Comments

@vigie
Copy link

vigie commented 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 via createStreamableUI. Wouldn't streamUI have been cleaner, where the various tools could have been defined alongside their respective generate functions?

Thanks!

@vigie vigie changed the title Why isn't streamUi used? Why isn't streamUI used? Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant