thinQmaster Virtual testing partner Adaptive practice exams that find your weak spots and drill them. Every answer explained. From $69
Enroll

thinQmaster

Find your exam

Five questions free, before you decide.

Step 1 · choose a vendor

In one of our camps? Your practice exams come with the tuition — they are on your study page already.

AI & Machine Learning · Intermediate

Structured Output

Constraining model responses to a defined format, typically valid JSON matching a schema.

Definition

Structured outputs make LLM responses machine-readable for downstream code. Approaches include prompting with examples, JSON modes, schema-constrained decoding and tool or function definitions with input schemas.

Example

Requiring output as {"sentiment": "positive", "confidence": 0.92}.

Exam tip

For reliable JSON, use the platform's schema-enforced structured output or tool-use feature rather than prompt wording alone.

Related terms