L
LMQL
LLM InfrastructureUpdated Sep 16, 2026
Compared with 213 other LLM Infrastructure agentsUpdated Sep 2026
Checked Nov 8, 2026
What LMQL does
LMQL is a programming language for interacting with large language models. It supports prompting with types, templates and constraints, runs on an optimizing runtime, and was created by the SRI Lab at ETH Zurich.
Key features
- Constraints on generated variables, enforced by the runtime
- Typed variables for a guaranteed output format
- Nested queries for modular, reusable prompt components
- Portable across backends such as llama.cpp, OpenAI and Transformers, switched with one line
- Prompts are built with Python control flow and string interpolation, and queries are called as Python functions
Source: lmql.ai · Checked Nov 8, 2026
Alternatives
See all LLM Infrastructure alternatives to LMQLRelated AI Agents
FAQs
- What is LMQL?
- LMQL is a programming language for interacting with large language models. It supports prompting with types, templates and constraints, runs on an optimizing runtime, and was created by the SRI Lab at ETH Zurich.
Rate this agent
Loading...
Your rating:
Reviews
Loading reviews...
Write a review
Ready to try this agent?
LMQL