Hi, probably a dumb question but I'm stuck π
I want to stream tokens out of a function with a string type
But as I stream the partial output it actually prints the entire thing every time, how do I get to just the delta?
v
Vaibhav (BAML π)
09/24/2025, 1:41 PM
For that you need to use the collector! Or you can build the delta object yourself using a delta variable
Vaibhav (BAML π)
09/24/2025, 1:42 PM
On phone or Iβd post a code snippet sorry!
Vaibhav (BAML π)
09/24/2025, 1:43 PM
The cool thing about streaming in BAML π is we actually give you the value as soon as you are ready to consume instead of as it comes in. So if youβre running something kind of slow on every object, youβll get it all the updates since the last process time rather than just the next event.
Vaibhav (BAML π)
09/24/2025, 1:44 PM
To access the raw underlying stream / sse events, we expose that via our collector interface