Extract, parse and validate LLM-generated YAML.
Parsing is done with yaml.parseDocument so the returned AST can be reused for downstream layout/comment injection without re-parsing the YAML string.
yaml.parseDocument
The raw text returned by the model.
The parsed resume and the parsed YAML document.
When parsing or validation fails.
Extract, parse and validate LLM-generated YAML.
Parsing is done with
yaml.parseDocumentso the returned AST can be reused for downstream layout/comment injection without re-parsing the YAML string.