pub fn shape_to_grammar(shape: &dyn Shape) -> Result<String>
Lowers a SIM shape into a constrained-decoding grammar string.
shape
The grammar can be handed to a model runner to constrain generation to values that match shape.