-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Add LLM structured output example using Pydantic AI #12593
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
CodSpeed Performance ReportMerging #12593 will not alter performanceComparing Summary
|
Co-authored-by: Douwe Maan <me@douwe.me>
docs/examples/pydantic_ai.md
Outdated
|
|
||
| ## LLM Structured Output | ||
|
|
||
| === "Simple" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd say keeping one example is fine with a validator. Let's also make use the validation context to make the example more lifelike, by passing in a small list of valid countries.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry for taking so long, modified the example to use validation context and kept it to one exmaple now
Co-authored-by: Victorien <65306057+Viicos@users.noreply.github.com>
Uh oh!
There was an error while loading. Please reload this page.