Skip to content

feat(openai-agents): Add data_collection controls for invoke_agent spans - #7124

Merged
ericapisani merged 1 commit into
masterfrom
py-2588-openai-agents-invoke-agent
Aug 10, 2026
Merged

feat(openai-agents): Add data_collection controls for invoke_agent spans#7124
ericapisani merged 1 commit into
masterfrom
py-2588-openai-agents-invoke-agent

Conversation

@ericapisani

@ericapisani ericapisani commented Aug 6, 2026

Copy link
Copy Markdown
Member

Allow SDK users to control whether agent instructions/inputs and outputs
are recorded on invoke_agent spans via _experiments.data_collection.gen_ai.inputs
and .outputs, with send_default_pii as a fallback for backwards compatibility.

When data_collection config is present, it takes precedence over send_default_pii,
giving users granular control over AI telemetry collection.

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 7, 2026 14:09
@ericapisani
ericapisani requested a review from a team as a code owner August 7, 2026 14:09
@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Codecov Results 📊

100724 passed | ⏭️ 6677 skipped | Total: 107401 | Pass Rate: 93.78% | Execution Time: 351m 9s

📊 Comparison with Base Branch

Metric Change
Total Tests 📈 +1140
Passed Tests 📈 +1134
Failed Tests
Skipped Tests 📈 +6

All tests are passing successfully.

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

Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
+ Coverage    90.03%    90.04%    +0.01%
==========================================
  Files          193       193         —
  Lines        25074     25100       +26
  Branches      9066      9088       +22
==========================================
+ Hits         22574     22599       +25
- Misses        2500      2501        +1
- Partials      1438      1438         —

Generated by Codecov Action

Base automatically changed from py-2588-openai-agents-execute-tool to master August 10, 2026 13:21
Allow SDK users to control whether agent instructions/inputs and outputs
are recorded on invoke_agent spans via `_experiments.data_collection.gen_ai.inputs`
and `.outputs`, with `send_default_pii` as a fallback for backwards compatibility.

When data_collection config is present, it takes precedence over send_default_pii,
giving users granular control over AI telemetry collection.

Refs PY-2588
@ericapisani
ericapisani force-pushed the py-2588-openai-agents-invoke-agent branch from da1ee7a to 1d3d36f Compare August 10, 2026 13:21
@ericapisani
ericapisani merged commit 658d26f into master Aug 10, 2026
143 of 145 checks passed
@ericapisani
ericapisani deleted the py-2588-openai-agents-invoke-agent branch August 10, 2026 13:47
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