instructor
Installation
SKILL.md
Instructor — Structured LLM Outputs
Get type-safe, validated Pydantic objects from any LLM instead of raw strings.
Setup
pip install instructor pydantic
pip install anthropic # or openai
Basic Usage (Anthropic)
import anthropic
import instructor
from pydantic import BaseModel