aiagent.club
中文
PyPI

instructor

#71 of 964 in the AI Agent Index

40 Score
Real usage
89
Momentum
Attention

About

Get reliable JSON from any LLM. Built on Pydantic for validation, type safety, and IDE support.

That's it. No JSON parsing, no error handling, no retries. Just define a model and get structured data.

Use Instructor for fast extraction, reach for PydanticAI when you need agents. Instructor keeps schema-first flows simple and cheap. If your app needs richer agent runs, built-in observability, or shareable traces, try PydanticAI. PydanticAI is the official agent runtime from the Pydantic team, adding typed tools, replayable datasets, evals, and production dashboards while using the same Pydantic models. Dive into the PydanticAI docs to see how it extends Instructor-style workflows.

Getting…

Across sources

17.4M Downloads / month
  • Downloads / month 17.4M
  • Downloads / week 4.4M
  • Downloads / day 686.2k