@Vaibhav (BAML 🐑) @aaronv (BAML)
Its been a while! Hope things are going well. I had a quick question that isnt very clear to me in docs that I am hoping to resolve quickly. We are adding some generative UI features to Ape AI, and I am trying to figure out the best way to achieve the following.
Our BAML func returns a union of message types such as Markdown | Component.
For the component types we want to show a loading state untilt that Component is done streaming so we can render the Component.
What I can gather from the docs is that I should use stream.done on a field lets call it stream_completed? Based on that the clients can either show the loading state or the component (once that type is streamed).