-
Notifications
You must be signed in to change notification settings - Fork 831
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Finished custom tools section and framework comparison
Showing
8 changed files
with
137 additions
and
554 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 24 additions & 2 deletions
26
docs_new/core-framework/tools/custom-tools/pydantic-is-all-you-need.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,29 @@ | ||
--- | ||
title: "Pydantic is All You Need" | ||
description: "How Pydantic solves AI Agent reliability." | ||
description: "How Pydantic solved AI agent reliability." | ||
icon: "book" | ||
--- | ||
|
||
This guide is based on a youtube video pydantic is all you need by Jason Liu. | ||
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 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/) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
title: "Cursor IDE" | ||
title: "Cursor AI" | ||
description: "Getting started with Cursor." | ||
icon: "cube" | ||
--- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters