Software Development

Guidance

Guidance is Microsoft's open-source Python library for controlling LLM output with constrained generation: you interleave text, control flow, regex, select() choices and JSON schemas, and the model can only emit tokens that fit. Use when a user needs guaranteed-valid JSON, classification into fixed labels, regex-shaped fields or a custom grammar from a local model (Transformers, llama.cpp), or asks for "guidance", "constrained decoding" or "structured output" without retry loops.

Publisher / source
TerminalSkills Library
Upstream record
TerminalSkills/skills
Version
Version 3
Published
Publication review
Approved for publication
Content fingerprint
faf8c6f4d045fbb3afeff27da46835037b7e73df90d43e6afd75c261687e3964