Ruby
Here’s a sample repository: https://github.com/BoundaryML/baml-examples/tree/main/ruby-example
To set up BAML in ruby do the following:
Install BAML VSCode Extension
https://marketplace.visualstudio.com/items?itemName=boundary.baml-extension
-
syntax highlighting
-
testing playground
-
prompt previews
Generate Ruby code from .baml files
This command will help you convert .baml
files to .rb
files. Everytime you modify your .baml
files,
you must re-run this command, and regenerate the baml_client
folder.
Our VSCode extension automatically runs this command when you save a BAML file.