fix(deps): require pydantic-ai 2.27.1 so tracing excludes retry content - #1235
Merged
PsiACE merged 3 commits intoAug 13, 2026
Merged
Conversation
Contributor
Author
|
Added a regression test so this can't come back: the model first returns output missing a nested required field, and we assert that text never lands in a span. The output type has to be nested — a flat one gives a |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which issue or RFC does this PR close?
Closes #1228.
Rationale for this change
include_content=Falsedid not cover the schema-validation retry path: the retry feedback quoted themodel's raw output into
gen_ai.input.messagesandpydantic_ai.all_messages, and for Memory extractionthat output is the proposed Memory content. Upstream fixed it in 2.27.1, but our floor was
>=2.14.1, soa fresh install could still resolve a leaking version.
What changes are included in this PR?
pydantic-ai-slimfloor to>=2.27.1and relock (resolves to 2.29.0).docs/enanddocs/zh.Are there any user-facing changes?
The minimum
pydantic-ai-slimis now 2.27.1, and the tracing guarantee from #1227 holds withoutexception. No API or persisted-format changes.
How was this change tested?
make test,make docs-test, andmake checkpass. Leak checked with an in-memory span exporterthrough the real extraction path: 2.14.1 leaks those two attributes, 2.29.0 leaks nothing, both with the
retry confirmed triggered.