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.
Glossary: Building with LLMs Basics
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.