clifton/rstructor
Pydantic + Instructor for Rust: extract structured, validated data from LLMs (OpenAI GPT, Anthropic Claude, Gemini, Grok/xAI) into native Rust structs & enums. Derive macros auto-generate JSON Schema, parse responses, and retry on validation errors. Type-safe structured outputs & function calling.
2 best points · 2 comments · 2 Hacker News posts · 34 GitHub stars · View on GitHub
Hacker News discussions
- Show HN: rstructor, Pydantic+instructor for Rust (2 points, 2 comments, by cliftonk, 2025-10-31)
- Show HN: Painless structured data from LLMs in Rust: rstructor (2 points, 0 comments, by cliftonk, 2025-11-03)