fix(ai): Gate response tool calls on the gen_ai inputs setting - #7174
Open
ericapisani wants to merge 1 commit into
Open
fix(ai): Gate response tool calls on the gen_ai inputs setting#7174ericapisani wants to merge 1 commit into
ericapisani wants to merge 1 commit into
Conversation
`gen_ai.response.tool_calls` was gated on `data_collection.gen_ai.outputs` in the OpenAI, Anthropic, OpenAI Agents, and Google GenAI integrations. Tool calls belong to the inputs category, so they are now gated on `data_collection.gen_ai.inputs` while response text stays on `outputs`. Where both attributes previously shared a single gate, the block is split so each is evaluated independently. The legacy `send_default_pii`/`include_prompts` path is unchanged. Refs PY-2588 Refs #6748
Contributor
Codecov Results 📊✅ 104810 passed | ⏭️ 6749 skipped | Total: 111559 | Pass Rate: 93.95% | Execution Time: 361m 17s 📊 Comparison with Base Branch
All tests are passing successfully. ✅ Patch coverage is 100.00%. Project has 2483 uncovered lines. Coverage diff@@ Coverage Diff @@
## main #PR +/-##
==========================================
+ Coverage 90.14% 90.14% —%
==========================================
Files 193 193 —
Lines 25183 25192 +9
Branches 9176 9174 -2
==========================================
+ Hits 22700 22709 +9
- Misses 2483 2483 —
- Partials 1429 1428 -1Generated by Codecov Action |
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.
gen_ai.response.tool_callswas gated ondata_collection.gen_ai.outputsin the OpenAI, Anthropic, OpenAI Agents, and Google GenAI integrations. Tool calls belong to the inputs category, so they are now gated ondata_collection.gen_ai.inputswhile response text stays onoutputs.Where both attributes previously shared a single gate, the block is split so each is evaluated independently. The legacy
send_default_pii/include_promptspath is unchanged.Refs PY-2588
Refs #6748