Schema first design
Document the output schema before you write the prompt. Make each field required and typed.
Validate and repair
If a response fails schema validation, retry with a repair prompt that only fixes the broken fields.
{
"summary": "string",
"risks": [{ "title": "string", "impact": "string" }],
"next_steps": ["string"]
}Agent handshake
Use structured outputs to pass data between agents without ambiguity.