I

Instructor

Open source
LLM InfrastructureUpdated Feb 15, 2026
14,101 starsCompared with 213 other LLM Infrastructure agentsOpen sourceUpdated Feb 2026
MIT license14,101 GitHub starsChecked Nov 8, 2026

What Instructor does

Instructor is a library for getting structured outputs (JSON) from LLMs. You define a Pydantic model and Instructor returns validated, typed data, handling schemas, validation errors, retries and differences between provider APIs.

Key features

  • Same code works across providers including OpenAI, Anthropic, Google, Ollama and Groq
  • Failed validations are retried automatically with the error message
  • Streams partial objects as they are generated
  • Handles nested objects
  • Available for Python, TypeScript, Ruby, Go, Elixir and Rust
Open source
Yes (MIT)

Source: github.com/instructor-ai/instructor · Checked Nov 8, 2026

Alternatives

See all LLM Infrastructure alternatives to Instructor

Related AI Agents

Related reading

FAQs

What is Instructor?
Instructor is a library for getting structured outputs (JSON) from LLMs. You define a Pydantic model and Instructor returns validated, typed data, handling schemas, validation errors, retries and differences between provider APIs.
Is Instructor open source?
Yes, under the MIT license.

Rate this agent

Loading...

Your rating:

Reviews

Loading reviews...

Write a review

Your rating
0 / 500

Ready to try this agent?

Instructor