把大模型输出直接解析成结构化对象的库,用 Pydantic 模型或类型注解描述目标结构,校验失败时自动把错误回传给模型重试。同一套思路给出 Python、TypeScript、Go 与 Ruby 版本。 ⭐ GitHub Stars: 14k+ | 🔗 概念文档: https://python.useinstructor.com/concepts/
A library that turns LLM output into structured objects. You describe the target shape with Pydantic models or type hints, and validation errors are fed back to the model for an automatic retry. The same approach ships for Python, TypeScript, Go and Ruby. ⭐ GitHub Stars: 14k+ | 🔗 Concepts: https://python.useinstructor.com/concepts/
Instructor belongs to the Developer Tools category on hedirbase. Tagged with: structured-output,llm,pydantic,validation,python,open-source.
A library that turns LLM output into structured objects. You describe the target shape with Pydantic models or type hints, and validation errors are fed back to the model for an automatic retry. The s