https://github.com/dottxt-ai/outlines
Essentially, why would you need a strictValidation parameter when you can literally enforce it?
Outlines enables exactly that! The output can be clearly defined with a JSON schema or Pydantic model, or even RegEx!
Running sentiment analysis and just want either 'Positive' or 'Negative'? Easy! Just create a tuple with the possible outputs.