---
title: "Pydantic is All You Need"
description: "How Pydantic solved AI agent reliability."
icon: "book"
---

The idea of using Pydantic to validate tool calls and responses is not new. It was popularized by Jason Liu in his library called [Instructor](https://github.com/instructor-ai/instructor).

To really understand why it's such a game changer, we recommend watching this video:

<iframe
  width="100%"
  height="400"
  src="https://www.youtube.com/embed/yj-wSRJwrrc"
  title="YouTube video player"
  frameborder="0"
  allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
  allowfullscreen
></iframe>

## Learn more

To take your tools to the next level, we highly recommend the following resources:

- [Pydantic Models Documentation](https://docs.pydantic.dev/latest/concepts/models/)
- [Instructor Concepts](https://python.useinstructor.com/concepts/)
- [Instructor Tips & Tricks](https://python.useinstructor.com/tutorials/2-tips/)
- [Instructor Cookbook](https://python.useinstructor.com/examples/)
