Co-authored-by: nilbuild <4921183+nilbuild@users.noreply.github.com>
1.1 KiB
1.1 KiB
Structured Outputs
Structured outputs constrain model generation to a defined schema — typically JSON, a specific data type, or a function signature — so that downstream code can parse the result directly without a repair pass. Major inference engines including vLLM and SGLang ship structured output as a first-class feature. The tradeoff is that a schema guarantees the shape of the output, not its correctness: if the model's best answer does not naturally conform to the schema, forcing conformance can affect response quality.
Visit the following resources to learn more: