pydantic-is-all-you-need.mdx 1.0 KB

12345678910111213141516171819202122232425262728
  1. ---
  2. title: "Pydantic is All You Need"
  3. description: "How Pydantic solved AI agent reliability."
  4. icon: "book"
  5. ---
  6. 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).
  7. To really understand why it's such a game changer, we recommend watching this video:
  8. <iframe
  9. width="100%"
  10. height="400"
  11. src="https://www.youtube.com/embed/yj-wSRJwrrc"
  12. title="YouTube video player"
  13. frameborder="0"
  14. allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
  15. allowfullscreen
  16. ></iframe>
  17. ## Learn more
  18. To take your tools to the next level, we highly recommend the following resources:
  19. - [Pydantic Models Documentation](https://docs.pydantic.dev/latest/concepts/models/)
  20. - [Instructor Concepts](https://python.useinstructor.com/concepts/)
  21. - [Instructor Tips & Tricks](https://python.useinstructor.com/tutorials/2-tips/)
  22. - [Instructor Cookbook](https://python.useinstructor.com/examples/)