instructor - Generate validated structured outputs from LLMs
Extracts structured data from LLM responses using Pydantic schemas, validation, retries, and streaming across supported providers.
Tags
Updated: 2026-10-02Prompt EngineeringInstructorStructured OutputPydanticData ExtractionJSON ParsingType SafetyValidationStreamingOpenAIAnthropic
Capabilities
What this skill does
- Extract structured data
- Validate Pydantic outputs
- Retry failed validations
- Parse typed JSON
- Stream partial results
- Support multiple providers
Inputs
- LLM response text
- Pydantic response models
- Provider API credentials
- LLM model selection
- User prompts
Outputs
- Validated structured objects
- Validation error feedback
- Retried extraction results
- Partial streamed objects
- Streamed iterable items
Requirements
- Python environment
- instructor package
- pydantic package
- OpenAI or Anthropic package
- Supported LLM provider access
- Provider API permissions
