instructor - Validate structured LLM outputs with Pydantic
Extracts, validates, retries, and streams structured outputs from LLMs through Pydantic models and multiple providers.
Tags
Updated: 2026-10-02Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Extract structured data
- Validate Pydantic outputs
- Retry failed validations
- Parse typed JSON
- Stream partial results
- Support multiple providers
Inputs
- Source text
- Prompt messages
- Pydantic response models
- Validation constraints
- Model configuration
- Provider credentials
Outputs
- Validated response objects
- Partial streamed objects
- Streamed iterable items
Requirements
- Python packages: instructor, pydantic, openai, anthropic
- Supported operating system
- Compatible LLM provider
- Provider API credentials
