Applied AI·Structured outputs and tool calling
you need JSON your code can parse rather than prose, so you constrain the shape of the response instead of writing a regex over the answer.
Structured output
Draft summary, pending review
Any technique for making the model produce machine-parseable output, almost always JSON matching a schema. The difference between a demo and a product is usually whether this layer is reliable.