ndcorder

outputguard

ndcorder

Validate, repair, and retry LLM structured outputs. 13 repair strategies for common JSON malformations, JSON Schema validation, and retry-with-feedback prompts.

AI 简介

outputguard 是一个用于校验、修复和重试大语言模型(LLM)结构化输出的 Python 工具库。它支持 JSON、YAML、TOML 和 Python 字面量等多种格式,内置 13 种针对常见 JSON 损坏(如引号不匹配、尾逗号、代码块包裹、NaN、截断等)的自动修复策略,并集成 JSON Schema 验证与带反馈的重试提示生成。适用于需要稳定获取结构化响应的 AI 应用开发、LLM 输出后处理、自动化评测及生产级 API 封装等场景。

Python
MIT License
60
Stars
0
Forks
1
Watchers
0
Issues

Star 增长

今日0
近 7 天0
近 30 天0
综合评分40
默认分支master