Patterns · Vol. 15

Pattern

Structured output prompting and vendor features

Get reliable, parseable structured output (JSON, XML, custom formats) from LLMs using vendor-provided structured output features where available, falling back to prompt engineering and validation patterns where they aren't.

Classification — Producing reliable structured output from LLMs through vendor features or prompt engineering.

Full entry

The complete treatment — problem, how it works, when to use it, sources, and examples — lives in the volume below.

Browse the full pattern index or the catalog.