upvote
Maybe similar to Instructor [1] which was a cool tool for json and structured output enforcement combining pydandic with ai retry loops very handy for when models don't have that covered

[1] https://github.com/567-labs/instructor

reply
Interesting! I'll look into that. Would mean another dep/integration but might be more robust.
reply