Skip to content

Glossary: Running Open Models Locally

Literal type

Also written: Literal

A Python type hint that limits a field to a list of exact values, such as the six email categories. With constrained decoding the engine enforces it.

Where the book teaches it

Related terms

PydanticConstrained decoding