Skip to content

Glossary: Building with LLMs Basics

Literal

Also written: Literal[...]

A type hint from `typing` meaning exactly one of a fixed list of values. It becomes an enum in the schema and also makes a safe menu of allowed actions.

Where the book teaches it

Related terms

PydanticJSON schema