ref(pydantic_ai): Split prompt gating into separate inputs/outputs controls - #7181
Merged
Conversation
…ntrols Replace the single _should_send_prompts check with _should_send_inputs and _should_send_outputs, gated by the new data_collection.gen_ai.inputs/outputs experimental options when set, falling back to the existing send_default_pii + include_prompts behavior otherwise. Available tools are now gated on inputs specifically. This lets callers control request and response data collection independently. Refs PY-2588 Refs #6748
Member
Author
|
bugbot run |
ericapisani
marked this pull request as ready for review
August 12, 2026 18:38
Contributor
Codecov Results 📊✅ 113056 passed | ⏭️ 6759 skipped | Total: 119815 | Pass Rate: 94.36% | Execution Time: 409m 21s 📊 Comparison with Base Branch
All tests are passing successfully. ✅ Patch coverage is 100.00%. Project has 2487 uncovered lines. Coverage diff@@ Coverage Diff @@
## main #PR +/-##
==========================================
+ Coverage 90.20% 90.21% +0.01%
==========================================
Files 193 193 —
Lines 25379 25394 +15
Branches 9320 9328 +8
==========================================
+ Hits 22890 22907 +17
- Misses 2489 2487 -2
- Partials 1438 1437 -1Generated by Codecov Action |
Member
Author
|
@cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 9551d0a. Configure here.
sentrivana
approved these changes
Aug 13, 2026
alexander-alderman-webb
previously requested changes
Aug 13, 2026
ericapisani
dismissed
alexander-alderman-webb’s stale review
August 13, 2026 18:21
Addressed comments in follow up commit.
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.
Replace the single _should_send_prompts check with _should_send_inputs and _should_send_outputs, gated by the new data_collection.gen_ai.inputs/outputs experimental options when set, falling back to the existing send_default_pii
Refs #6748
Refs #6748