For this example, we'll use the structured output parser. Here's what happens if we pass it a result that does not comply with the schema:

import CodeBlock from "@theme/CodeBlock";
import Fix from "@examples/prompts/fix_parser.ts";

<CodeBlock language="typescript">{Fix}</CodeBlock>