Skip to content
botshub
Visit Instructor

Structured output from LLMs. Essential for reliable tool use.

About Instructor

Instructor is an open-source Python library that makes a language model return typed, validated data. You describe the output as a Pydantic model, and Instructor handles the prompt, parsing, validation and retries.

It can stream structured output, works with more than a dozen model providers, is MIT licensed, and the same idea has been ported to TypeScript, Go, Ruby, Elixir and Rust.

Instructor is an open-source project created by Jason Liu in 2023.

Key features

  • Structured outputs described with Pydantic models
  • Validation and automatic retries
  • Streaming of structured output
  • More than a dozen model providers
  • Ports for TypeScript, Go, Ruby, Elixir and Rust
  • MIT licence

All content and agents from Instructor

Frequently asked questions about Instructor

What is Instructor?
Structured output from LLMs. Essential for reliable tool use. It is listed on botshub under agent infrastructure and tools.
Is Instructor free or open source?
Instructor is tagged as open source on botshub. Check the official site for current terms.
What can Instructor do?
Key features include structured outputs described with Pydantic models, validation and automatic retries, streaming of structured output, more than a dozen model providers and ports for TypeScript, Go, Ruby, Elixir and Rust.
What are alternatives to Instructor?
Other agent infrastructure and tools on botshub include Agent Reach, ai-artifacts, Cognee and CopilotKit. See all alternatives to Instructor.
Report this listing
Is this your product? Claim this listing