Watch the explanation. Practice the skill.

Handle structured output and provider failure states

Check both the shape and the truth of a structured result.

Visual lesson1:36

Captions appear here during playback.

Handle structured output and provider failure states

Check both the shape and the truth of a structured result.

Download transcriptOpen video file

Source-based teaching example · Fictional data · Reviewed 2026-10-03. Microsoft Mark · locally synthesized. On a small screen, use fullscreen for diagram details or read the transcript.

Read the descriptive transcript

0:00 · What you will learn

Check both the shape and the truth of a structured result.

What appears on screen

Check both the shape and the truth of a structured result.

0:06 · The idea

Validate status, fields and types. Then compare the values with their source. Refused or incomplete output must not become an ordinary success.

What appears on screen

Validate status, fields and types. Then compare the values with their source. Refused or incomplete output must not become an ordinary success.

0:19 · One useful term

Schema validation. Checking that an output follows the required field and value rules.

What appears on screen

Checking that an output follows the required field and value rules.

0:28 · A worked example

The response has valid fields but says record P starts at 11:00. The source says 10:00. Format validation passes; the evidence check fails.

What appears on screen

The response has valid fields but says record P starts at 11:00. The source says 10:00. Format validation passes; the evidence check fails.

0:42 · Your turn to think

Does valid structure make the time correct? Pause and decide before continuing.

What appears on screen

Does valid structure make the time correct? Pause the video if you need more time.

0:58 · Why this answer works

No. Return an unsupported-result state. Do not invent replacement content for refusal or incomplete output.

What appears on screen

No. Return an unsupported-result state. Do not invent replacement content for refusal or incomplete output.

1:09 · Check 1

Validate the envelope and fields.

What appears on screen

Validate the envelope and fields.

1:14 · Check 2

Check values against evidence.

What appears on screen

Check values against evidence.

1:19 · Check 3

Preserve refusal and incomplete states.

What appears on screen

Preserve refusal and incomplete states.

1:25 · Now try a different case

Open the lesson and try its different practice case. Use every check in the full task. Watching alone does not mark the lesson complete.

What appears on screen

Open the lesson Try the new case Check and revise The full task and its requirements are in the linked lesson.

Watching explains the example. Complete the lesson practice to check what you can do. Explore all visual lessons →