- I want to write a domain-specific language for producing LLM constraints, to use specifically for code generation.
- My main motivation at the moment is to write a framework for constrained generation that operates at the semantic level.
- I am curious to see how much of a deep integration we can write between a programming language's type system.
This is an example program for constraining the LLM output to be one of the following alternatives: