I use an example derived from your page: https://python.useinstructor.com/examples/self_critique/?h=before#adding-custom-validation, patched to work with llama-cpp ...