Skip to content

ref(pydantic_ai): Split prompt gating into separate inputs/outputs controls - #7181

Merged
ericapisani merged 3 commits into
masterfrom
py-2588-pydantic
Aug 13, 2026
Merged

ref(pydantic_ai): Split prompt gating into separate inputs/outputs controls#7181
ericapisani merged 3 commits into
masterfrom
py-2588-pydantic

Conversation

@ericapisani

@ericapisani ericapisani commented Aug 12, 2026

Copy link
Copy Markdown
Member

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 #6748
Refs #6748

…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
@linear-code

linear-code Bot commented Aug 12, 2026

Copy link
Copy Markdown

PY-2588

@ericapisani

Copy link
Copy Markdown
Member Author

bugbot run

@ericapisani
ericapisani marked this pull request as ready for review August 12, 2026 18:38
@ericapisani
ericapisani requested a review from a team as a code owner August 12, 2026 18:38
@github-actions

github-actions Bot commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Codecov Results 📊

113056 passed | ⏭️ 6759 skipped | Total: 119815 | Pass Rate: 94.36% | Execution Time: 409m 21s

📊 Comparison with Base Branch

Metric Change
Total Tests 📈 +760
Passed Tests 📈 +760
Failed Tests
Skipped Tests

All tests are passing successfully.

✅ Patch coverage is 100.00%. Project has 2487 uncovered lines.
✅ Project coverage is 90.21%. Comparing base (base) to head (head).

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        -1

Generated by Codecov Action

@ericapisani

Copy link
Copy Markdown
Member Author

@cursor review

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

✅ 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.

Comment thread sentry_sdk/integrations/pydantic_ai/spans/ai_client.py Outdated
@ericapisani
ericapisani dismissed alexander-alderman-webb’s stale review August 13, 2026 18:21

Addressed comments in follow up commit.

@ericapisani
ericapisani merged commit e1b6e16 into master Aug 13, 2026
139 checks passed
@ericapisani
ericapisani deleted the py-2588-pydantic branch August 13, 2026 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants