Streaming BAML Functions
Now that we know how to call BAML functions, let’s learn how to stream BAML function calls.
You can check out more examples in the BAML Examples repo.
This time, we’ll use function ExtractReceiptInfo(email: string) -> ReceiptInfo
for our example:
Python
TypeScript
Ruby (beta)
OpenAPI
BAML will generate b.stream.ExtractReceiptInfo()
for you, which you can use like so:
main.py