r30004954
08/19/2025, 2:51 PMfrom baml_client.async_client import b
from baml_py import Collector
async def run():
collector = Collector(name="my-collector")
my_b = b.with_options(collector=collector, client_registry=client_registry)
stream = my_b.stream.ExtractResume("...")
async for chunk in stream:
print(chunk)
result = await stream.get_final_result()
print(collector.id(stream.id).usage)Vaibhav (BAML 🐑)
08/19/2025, 2:53 PMstream.id may not exist (it should but it may not)Vaibhav (BAML 🐑)
08/19/2025, 2:53 PMr30004954
08/19/2025, 2:58 PMwindsurf to create a hypothetical solution 😉