Calling BAML Functions
Once you’ve generated the BAML client and set your environment variables, you can call BAML functions from your code.
You can check out more examples in the BAML Examples repo.
We’ll use function ClassifyMessage(input: string) -> Category
for our example:
Python
TypeScript
Ruby (beta)
OpenAPI
BAML will generate b.ClassifyMessage()
for you, which you can use like so:
main.py