instructor
CommunityStructured LLM outputs with Pydantic validation.
AuthorAXGZ21
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill solves the challenge of reliably extracting structured, validated data from Large Language Model (LLM) responses, ensuring type safety and automatic error handling.
Core Features & Use Cases
- Structured Data Extraction: Extract data into Pydantic models for type-safe access.
- Automatic Validation: Pydantic schemas automatically validate LLM outputs.
- Retry Mechanism: Automatically retries LLM calls when validation fails, providing feedback.
- Streaming Outputs: Stream partial or iterable results for real-time processing.
- Use Case: Extracting customer details (name, email, age) from unstructured text into a Pydantic
Usermodel, with automatic retries if the LLM fails to provide valid data.
Quick Start
Use the instructor skill to extract user data from the provided text into a Pydantic model.
Dependency Matrix
Required Modules
instructorpydanticopenaianthropic
Components
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: instructor Download link: https://github.com/AXGZ21/hermes-agent-railway/archive/main.zip#instructor Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.