parsec is a Python SDK that ensures LLM outputs conform to specified structures using Pydantic models. The parsec playground is a web-based development environment for testing LLM prompts with structured JSON schema validation.
Parsec's EnforcementEngine automatically retries failed validations, ensuring your LLM outputs always match your JSON schema. The enforcement process involves: