Pydantic

A Python library that defines data shapes as classes with type hints and validates data against them.

In more detail

Provider SDKs accept Pydantic models to generate the JSON Schema for structured outputs and tool inputs, and parse replies back into typed objects. Validation still matters: the model can return a well-typed but wrong value.

Related terms

Taught in

References

Certification courses