LLM Output Parsing

Get a trustworthy typed value out of a model's response, or a clean re-ask — never a guess. Two shapes: free-form prose you can't get as JSON (extract a verdict/score/boolean, and flag conflicting values as ambiguous instead of grabbing the first match), and "mostly JSON" wrapped in fences (extract, safe-repair, validate against a schema, re-ask on failure). The rule both share: never invent a value. Use when a downstream agent consumes another agent's output and a naive regex or `json.loads` returns the wrong value or crashes. Works on any model's text, not a provider format.

sharp-skills Updated

File contents

sharp-skills/skills/tree/main/skills/llm-output-parsing commit e9f71069c4

Frequently asked questions

npx skillmds@latest add sharp-skills/llm-output-parsing