Check output
check_outputCheck a structured output you're about to return or act on for degenerate-answer patterns a schema check can't see: invalid JSON, a placeholder value ('TBD', 'N/A', 'unknown') where a real answer should be, an array of byte-identical items (a common symptom of a loop that never advanced), or an expected field that's missing or empty. Schema validity and answer quality are different guarantees, call this before trusting your own output, not just after validating it parses.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output | Yes | The output to check, a JSON string, or an already-parsed value | |
| expectedFields | No | Optional: top-level field names expected to be present and non-empty |