Currently I see that baml do not support accessing aws bedrock models through guard rails. Majority of the enterpise companies will have the guardrails setup to secure the ins & out of llm. The modular API to some extent will be an alternative but that sacrifices the streaming capabilities. Is there a feature in the roadmap to address this capability?
b
baml-sam
12/06/2025, 5:07 PM
Of the many bedrock customers we have, not one has yet requested this 🙂
Baml’s schema enforcement works remarkably well as a guardrail, surprisingly enough, because if an attacker requests data in a different shape, it forces a Baml validation error.
baml-sam
12/06/2025, 5:08 PM
If you’re requesting it, though, would love to hear why!
s
sivaallu_19657
12/07/2025, 3:51 AM
guardrails are a layer of protection typically adopted by organizations to block the sensitive information before it is being passed to the llm. This is a feature offered by AWS Bedrock to protect leaking the sensitive PI data. It doesn't matter how stringent the security is enforced with baml, langchain, crew AI or any other framework but guardrail will ensure that data security for all the ins & out of llm.
b
baml-sam
12/07/2025, 7:47 PM
The same argument applies to guardrails: there's nothing specific that Bedrock does that you can't do with another framework 🙂
But heard! If you file a feature request at https://github.com/BoundaryML/baml/issues we'll take a look at it