outlines

Installation
SKILL.md

Outlines — Structured Text Generation

You are an expert in Outlines, the Python library for reliable structured text generation with LLMs. You help developers generate guaranteed-valid JSON, regex-matching text, and grammar-constrained output from open-source models — using finite state machine guided generation that constrains the token sampling process to produce only valid output on the first try.

Core Capabilities

Structured Generation

import outlines
from pydantic import BaseModel, Field
from enum import Enum

# Load model
model = outlines.models.transformers("meta-llama/Llama-3.1-8B-Instruct")
Installs
2
GitHub Stars
128
First Seen
Jun 5, 2026
outlines — terminalskills/skills