{"repo":"ndcorder/outputguard","free":true,"listed":false,"github":"https://github.com/ndcorder/outputguard","clone":"git clone https://github.com/ndcorder/outputguard.git","description":"Validate, repair, and retry LLM structured outputs. 13 repair strategies for common JSON malformations, JSON Schema validation, and retry-with-feedback prompts.","language":"Python","stars":60,"topics":["ai","anthropic","cli","developer-tools","json","json-repair","json-schema","llm","openai","python"],"license":"MIT","category":"ai-agents","readme_excerpt":"outputguard Stop wrestling with broken LLM structured output. Validate, repair, and retry — automatically. --- The Problem LLMs produce broken structured output constantly. JSON is the common case, but models also return YAML, TOML, Python-style literals when forced JSON is off, markdown fences, comments, trailing commas, NaN , truncated objects, and helpful commentary around the data you asked for. Every AI application ends up writing the same brittle parser + try/except + regex gauntlet. The Solution json {'name': 'Alice', 'age': 30,} Fifteen repair strategies, JSON Schema validation, retry prompt generation, and a CLI — now for JSON, YAML, TOML, Python literals, and auto-detected forced-JSON-off output. Installation Or with uv: Documentation Start with the README for a fast overview, then use the focused guides when you need exact behavior, API signatures, or command examples: - API guide - choose the right function and understand result objects. - Getting started - first validation, repair, retry, guarded generation, and CLI workflows. - Concepts - the mental model behind parsing, validation, repair, retries, and formats. - Formats guide - JSON, YAML, TOML, Python literals, auto , and forced-json-off . - Guarded generation guide - wrap an LLM call with validation, repair, retry, and observability. - Batch processing guide - validate or repair many outputs in one call or from the CLI. - CLI guide - commands, flags, examples, and exit codes. - Recipes - copy-paste patterns ","default_branch":null,"files":null,"tree":[],"storefront":"/r/ndcorder","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ndcorder/outputguard/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}