<h1 align="center">
<a href="https://prompts.chat">
Explore the comprehensive API reference with details on instructors, validation, iteration, and function calls.
Sign in to like and favorite skills
Core modes are the recommended default. Legacy provider-specific modes still work but are deprecated and will show warnings. See the Mode Migration Guide for details.
The main client classes for interacting with LLM providers.
::: instructor.Instructor
::: instructor.AsyncInstructor
::: instructor.core.client.Response
Functions to create Instructor clients from various providers.
::: instructor.from_provider
::: instructor.from_openai
::: instructor.from_litellm
Domain-specific language components for advanced patterns and data handling.
::: instructor.dsl.validators
::: instructor.dsl.iterable
::: instructor.dsl.partial
::: instructor.dsl.parallel
::: instructor.dsl.maybe
::: instructor.dsl.citation
Classes and functions for defining and working with function call schemas.
::: instructor.function_calls
::: instructor.OpenAISchema
::: instructor.openai_schema
::: instructor.generate_openai_schema
::: instructor.generate_anthropic_schema
::: instructor.generate_gemini_schema
Validation utilities for LLM outputs and async validation support.
::: instructor.validation
::: instructor.llm_validator
::: instructor.openai_moderation
Batch processing utilities for handling multiple requests efficiently.
::: instructor.batch
::: instructor.batch.BatchProcessor
::: instructor.batch.BatchRequest
::: instructor.batch.BatchJob
Tools for distillation and fine-tuning workflows.
::: instructor.distil
::: instructor.FinetuneFormat
::: instructor.Instructions
Support for image and audio content in LLM requests.
::: instructor.processing.multimodal
::: instructor.Image
::: instructor.Audio
Enumerations for modes and providers.
::: instructor.Mode
::: instructor.Provider
Exception classes for error handling.
::: instructor.core.exceptions
Event hooks system for monitoring and intercepting LLM interactions.
::: instructor.core.hooks
::: instructor.core.hooks.Hooks
::: instructor.core.hooks.HookName
Decorators for patching LLM client methods.
::: instructor.core.patch
::: instructor.patch
::: instructor.apatch