Skip to content

Glossary: Building with LLMs Basics

ValidationError

Also written: model_validate_json

The Pydantic exception raised when data doesn't fit the model, listing every problem. `model_validate_json` parses a JSON string and raises it on failure.

Where the book teaches it

Related terms

PydanticValidate and retry