instructor

Extracts structured LLM outputs and validates them with Pydantic schemas.

1|Updated Mar 22, 2026
One-click install
npx skills add https://github.com/nelohenriq/hermes-agent-plus --skill instructor-nelohenriq
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: instructor
Source: https://github.com/nelohenriq/hermes-agent-plus/tree/main/skills/mlops/inference/instructor
Command: npx skills add https://github.com/nelohenriq/hermes-agent-plus --skill instructor-nelohenriq

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Extracts structured LLM outputs and validates them with Pydantic schemas.

Core Features & Use Cases

  • Automatic validation of LLM outputs against Pydantic models
  • Automatic retries on validation failures with error feedback
  • Streaming partial results for real-time processing
  • Provider-agnostic integration across OpenAI, Anthropic, and local runtimes

Quick Start

Use a simple request to extract a validated "User" model from a natural-language description.

Frequently Asked Questions about instructor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate structured LLM outputs against a Pydantic schema?

To validate structured LLM outputs against a Pydantic schema, this skill extracts data using deterministic mapping and automatically validates it. It applies Pydantic schemas to ensure type-safe extraction in multi-provider data pipelines.

What happens when LLM structured output fails Pydantic validation?

When LLM structured output fails Pydantic validation, the skill automatically retries the extraction. It provides error feedback during these retries to ensure deterministic extraction and type safety in data pipelines.

Can I stream partial LLM outputs for real-time processing?

Yes, you can stream partial LLM outputs for real-time processing. The skill supports streaming partial results while maintaining Pydantic validation, enabling real-time processing of structured data as it generates.

Does this approach work for provider-agnostic LLM integration?

Yes, this approach works for provider-agnostic LLM integration across multi-provider scenarios. It supports integration with OpenAI, Anthropic, and local runtimes while applying deterministic extraction and Pydantic validation consistently.

What is the best way to extract type-safe data from natural language descriptions?

The best way to extract type-safe data from natural language is using Pydantic schemas for automatic validation. This skill handles deterministic extraction and applies automatic retries on validation failures to ensure accurate structured output.