https://www.boundaryml.com logo
t
Hi, I've been looking for a way to calculate the fingerprint of a BAML function and its associated model (for schema change detection, cache invalidation, and version tracking). I've implemented a workaround using baml_lib.PyBamlContext, render_prompt() and Python introspection, but I think having a more officially supported approach would be a valuable feature.
a
we do have a notion of funciton ids internally, I'll see if perhaps we can expose them through b.MyFunc.id or something similar. But at the very least we could potentialy give you an AST for that function