Skip to content

Glossary: Vision and Image Generation

Pydantic

Also written: BaseModel, Field, model_validate, model_dump

A Python library that defines data shapes as classes and validates values against them. It is used for models like `Invoice` and `Line`, and as the schema for structured model output.

Where the book teaches it

Related terms

Structured outputparse (messages.parse, responses.parse)