https://www.boundaryml.com logo
🟡 Reusing template_strings across .baml files
# questions
z
hey all, quick question... is there a way that i can import/reference and reuse template_strings defined in one .baml file in other .baml files? I'm trying to separate my prompt functions out into separate files to keep things more organized and easier to maintain, but I have a system prompt that I want to reuse across several functions that live in different .baml files.
same question would apply to class and type definitions as well. would love to re-use them across numerous files
a
Yes they are all available globally in the same baml_src
z
sheesh, didn't realize it just magically works that way 🤦‍♂️ no import syntax required. that's awesome, and thanks!
a
Np!