Skip to content

feat(anthropic): Gate output collection on data_collection option - #7121

Merged
ericapisani merged 2 commits into
masterfrom
py-2588-anthropic-outputs
Aug 7, 2026
Merged

feat(anthropic): Gate output collection on data_collection option#7121
ericapisani merged 2 commits into
masterfrom
py-2588-anthropic-outputs

Conversation

@ericapisani

@ericapisani ericapisani commented Aug 6, 2026

Copy link
Copy Markdown
Member

Output data (text and tool calls) is now gated on the data_collection
configuration, mirroring input collection behavior. When data_collection
is configured, its gen_ai.outputs setting is respected. When not configured,
falls back to the legacy send_default_pii and include_prompts behavior.

Refs PY-2588

@linear-code

linear-code Bot commented Aug 6, 2026

Copy link
Copy Markdown

PY-2588

@ericapisani
ericapisani marked this pull request as ready for review August 6, 2026 17:35
@ericapisani
ericapisani requested a review from a team as a code owner August 6, 2026 17:35
@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Codecov Results 📊

101517 passed | ⏭️ 6635 skipped | Total: 108152 | Pass Rate: 93.87% | Execution Time: 358m 41s

📊 Comparison with Base Branch

Metric Change
Total Tests 📈 +1680
Passed Tests 📈 +1560
Failed Tests
Skipped Tests 📈 +120

All tests are passing successfully.

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

Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
+ Coverage    90.00%    90.01%    +0.01%
==========================================
  Files          193       193         —
  Lines        25003     25010        +7
  Branches      9026      9032        +6
==========================================
+ Hits         22503     22511        +8
- Misses        2500      2499        -1
- Partials      1436      1438        +2

Generated by Codecov Action

Base automatically changed from py-2588-anthropic to master August 7, 2026 15:27
Output data (text and tool calls) is now gated on the data_collection
configuration, mirroring input collection behavior. When data_collection
is configured, its gen_ai.outputs setting is respected. When not configured,
falls back to the legacy send_default_pii and include_prompts behavior.

Refs PY-2588
@ericapisani
ericapisani force-pushed the py-2588-anthropic-outputs branch from 0405703 to afdf685 Compare August 7, 2026 15:27
@ericapisani
ericapisani merged commit 2b0db9f into master Aug 7, 2026
268 of 273 checks passed
@ericapisani
ericapisani deleted the py-2588-anthropic-outputs branch August 7, 2026 15:52
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.

2 participants