Prompting
Output constraint
A rule specifying the required length, format, style, or allowed content of a model response.
Example
A data-extraction prompt requires valid JSON with exactly four named fields.
Why people use it
Teams use “Output constraint” when they need to give models clearer instructions and diagnose weak prompts.
What you'll hear
“Can we improve this with Output constraint before we change the model?”