- Notifications
You must be signed in to change notification settings - Fork1k
Document breaking changes in v0.4.0#2154
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Conversation
PR Change SummaryDocumented breaking changes in version 0.4.0 of PydanticAI, including updates to dataclass usage and argument order in ToolDefinition.
Modified Files
How can I customize these reviews?Check out theHyperlint AI Reviewer docs for more information on how to customize the review. If you just want to ignore it on this PR, you can add the Note specifically for link checks, we only check the first 30 links in a file and we cache the results for several hours (for instance, if you just added a page, you might experience this). Our recommendation is to add |
Docs Preview
|
11d1cde
intomainUh oh!
There was an error while loading.Please reload this page.
See#1799 - Pydantic Evals
EvaluationReport
andReportCase
are now generic dataclasses instead of Pydantic models. If you were serializing them usingmodel_dump()
, you will now need to use theEvaluationReportAdapter
andReportCaseAdapter
type adapters instead.See#1507 - The
ToolDefinition
description
argument is now optional and the order of positional arguments has changed fromname, description, parameters_json_schema, ...
toname, parameters_json_schema, description, ...
to account for this.