Technology · Agentic → Structured Output · Open Source · wiki:deep
Guidance is a guidance language for controlling LLMs: compose prompts with Python context managers (system/user/assistant) and constrained generators — free gen, regex-constrained generation, select over options, and Pydantic/JSON schema generation (gen_json). Models are immutable copies (Transformers, LlamaCpp, mocks, and others). Related runtime work lives in llguidance (Rust). MIT. Last primary push noted mid-2026 in the pack map — verify activity before locking.
Agent tool protocols and ledger-bound records need generation that cannot emit invalid shapes. Guidance is the research pick when you want a programmable mix of free text and hard constraints at decode time. Prefer Instructor for pragmatic multi-provider Pydantic extraction in app code; prefer Outlines for grammar/schema-guided decoding especially on self-hosted backends; prefer LMQL for query-language + research constraint programming (check maintenance).
You build an immutable model session, append role blocks, and call generators that mask or constrain tokens. Captured named fields land on the model object for downstream Python use.
gen/select/regex/gen_json. Related: instructor · lmql · outlines · topics/12-central-nervous-system
Scroll inside the canvas to pan
Catalog backlinks — what points here (wiki “what links here”).
Claims below are backed by science sources on disk.
Language / control role
guidance-ai/guidance · MODERATE
“A guidance language for controlling large language models.”
Contrast vs LMQL
LMQL contrast · MODERATE
“A language for constraint-guided and efficient LLM programming.”
Contrast vs Outlines
Outlines contrast · MODERATE
“Structured outputs for LLMs”
Features and peers linked from the catalog map — not a second product surface.
No DM vendor crosswalk edges yet.
Primary repo github.com/guidance-ai/guidance · Open Source
technologies/guidance/README.md
9 tags · 7 out · 8 in · 3 artifacts · 1 gaps · 28 corpus docs
map_edge · 4
tech_features · 1
tech_quote · 9
tech_readme · 1
tech_science_source · 3
tech_section · 10