Post

ugly. It usually works, but there should be a better way. Now there is. Amazon Bedrock can enforce your JSON schema during generation for Claude models on the runtime and Mantle endpoints.

One catch is that the minimum, maximum, minLength and maxLength params are accepted but not enforced so the call still succeeds and you need to validate those yourself. Check this out from Anshika Saxena and others, with some examples.

0 reposts0 likes

No replies yet.