Supported languages and integrations for llguidance
mainllguidance provides bindings and integrations across several environments:
Language Bindings
- Rust: Available via the
parserdirectory. - C and C++: Header available at
parser/llguidance.h. - Python: Available via the
llguidance_pypackage (seepython/llguidance/_lib.pyifor type hints).
Major Integrations
- OpenAI: Powers Structured Output (JSON Schema only).
- llama.cpp: Available via
-DLLAMA_LLGUIDANCE=ONincmakeor via the Guidance Python package. - vLLM: Integrated in recent versions.
- SGLang: Use
--grammar-backend llguidance. When passing Lark grammars, prefix them with%llguidance {}(similar to llama.cpp). - Chromium: Used for JSON Schema enforcement in
window.ai. - Other: Guidance (Python), LLGTRT (TensorRT-LLM), mistral.rs, and onnxruntime-genai.