Instructor Structured Data Extraction from LLMs

Instructor is a multi-language library for extracting structured, validated data from LLM outputs. It patches LLM client libraries to return Pydantic models (Python) or Zod schemas (TypeScript) instead of raw text, supporting 15+ providers including OpenAI, Anthropic, and Google.

agentskillexchange Updated 28 repo stars

File contents

Instructor Structured Data Extraction from LLMs

Instructor is a multi-language library for extracting structured, validated data from LLM outputs. It patches LLM client libraries to return Pydantic models (Python) or Zod schemas (TypeScript) instead of raw text, supporting 15+ providers including OpenAI, Anthropic, and Google.

Installation

Use the upstream install or setup path that matches your environment:

  • pip install instructor
  • uv add instructor

Requirements and caveats from upstream:

Basic usage or getting-started notes:

Source

agentskillexchange/skills/tree/main/skills/instructor-structured-data-extraction-llms commit fa7a0bbd4c

Frequently asked questions

npx skillmds@latest add agentskillexchange/instructor-structured-data-extraction-from-llms