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 it matters
It makes AI-created material easier to use in a form, process or fixed space.
You'll hear it
“The reply needs exactly these fields and no extra commentary.”
Can you control it?
Yes
Yes. You can often use or adjust an output constraint directly when the product supports it. The available options and their effect still depend on the tool.
Common questions
- Does valid formatting mean the content is correct?
- No. An answer can fit the required structure while containing wrong values.
- Can several requirements conflict?
- Yes. A tight length limit can clash with the amount of information requested.
- What happens if the AI cannot meet the format?
- The application needs a way to reject, repair or retry the response rather than silently accepting it.