-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Support Pydantic validation context #3448
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
Merged
DouweM
merged 16 commits into
pydantic:main
from
NicolasPllr1:pass-pydantic-validation-context
Nov 26, 2025
Merged
Changes from 15 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
d12b571
Pass Pydantic validation context to agents (#3381)
NicolasPllr1 af7b193
Test agent validation context
NicolasPllr1 516e30c
feedback: Link Pydantic doc
NicolasPllr1 a74d95d
feedback: Remove unnecessary arg in _handle_text_response
NicolasPllr1 b80c472
feedback: `None` default for the val ctx and require kwargs after `da…
NicolasPllr1 d032fee
feedback: Shove the validation context inside the RunContext
NicolasPllr1 2e5ea2b
Test that the validation context is updated as the deps are mutated
NicolasPllr1 973cb34
feedback: fix docstring
NicolasPllr1 492bd2b
feedback: move validation context 'build + replace' inside build_run_…
NicolasPllr1 04e2096
Add documentation for the agent's validation context
NicolasPllr1 348b411
Fix the new doc-example test
NicolasPllr1 7541543
feedback: requires kwargs for self.validate calls
NicolasPllr1 cb8bb55
feedback(docstrings): mention tool args
NicolasPllr1 da9e3e8
feedback(doc): move 'validation context' below 'custom json'
NicolasPllr1 a01aea1
feedback(doc): validation context can influence tool args and output …
NicolasPllr1 8b31773
Apply suggestions from code review
DouweM File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.