Skip to content

fix: exclude validation error input from retry messages#4947

Merged
DouweM merged 1 commit intopydantic:mainfrom
navalprakhar:fix/strip-validation-error-input-from-retries
Apr 21, 2026
Merged

fix: exclude validation error input from retry messages#4947
DouweM merged 1 commit intopydantic:mainfrom
navalprakhar:fix/strip-validation-error-input-from-retries

Conversation

@navalprakhar
Copy link
Copy Markdown
Contributor

@navalprakhar navalprakhar commented Apr 2, 2026

Pre-Review Checklist

  • Any AI generated code has been reviewed line-by-line by the human PR author, who stands by it.
  • No breaking changes in accordance with the version policy.
  • Linting and type checking pass per make format and make typecheck.
  • PR title is fit for the release changelog.

Pre-Merge Checklist

  • New tests for any fix or new behavior, maintaining 100% coverage.
  • Updated documentation for new features and behaviors, including docstrings for API docs.

@github-actions github-actions Bot added size: S Small PR (≤100 weighted lines) bug Report that something isn't working, or PR implementing a fix labels Apr 2, 2026
Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 1 additional finding.

Open in Devin Review

Comment thread tests/test_agent.py
@DouweM DouweM self-assigned this Apr 10, 2026
@navalprakhar navalprakhar force-pushed the fix/strip-validation-error-input-from-retries branch from 58622b1 to c220d48 Compare April 10, 2026 18:11
devin-ai-integration[bot]

This comment was marked as resolved.

@navalprakhar navalprakhar force-pushed the fix/strip-validation-error-input-from-retries branch from c220d48 to fa1d0f0 Compare April 10, 2026 18:24
devin-ai-integration[bot]

This comment was marked as resolved.

@navalprakhar navalprakhar force-pushed the fix/strip-validation-error-input-from-retries branch from fa1d0f0 to 84c2cee Compare April 10, 2026 18:31
@navalprakhar navalprakhar force-pushed the fix/strip-validation-error-input-from-retries branch from 84c2cee to be35078 Compare April 10, 2026 18:33
@navalprakhar navalprakhar requested a review from DouweM April 10, 2026 18:43
@navalprakhar
Copy link
Copy Markdown
Contributor Author

@DouweM any feedback on this one?

@DouweM DouweM merged commit 3344a03 into pydantic:main Apr 21, 2026
50 checks passed
@DouweM
Copy link
Copy Markdown
Collaborator

DouweM commented Apr 21, 2026

@navalprakhar Love it, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Report that something isn't working, or PR implementing a fix size: S Small PR (≤100 weighted lines)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NativeOutput retries include full ValidationError input causing token bloat and noisy correction signal

2 participants