Skip to content

Conversation

SteveSandersonMS
Copy link
Member

@SteveSandersonMS SteveSandersonMS commented Apr 3, 2025

It would be nice if IChatClient implementations had some way to signal which parts of AdditionalProperties are sensitive and which aren't, but without some means to do that we're limited to treating it all as potentially sensitive.

If this later becomes problematic, we can design some way for implementations to communicate this info. For example, we could define a "telemetry" entry in AdditionalProperties that is documented as always included in telemetry output, and then it would be up to IChatClient implementations to put the right data there.

Microsoft Reviewers: Open in CodeFlow

@SteveSandersonMS SteveSandersonMS requested a review from a team as a code owner April 3, 2025 09:47
@github-actions github-actions bot added the area-ai Microsoft.Extensions.AI libraries label Apr 3, 2025
@stephentoub
Copy link
Member

we can design some way for implementations to communicate this info

Maybe some of the functionality from the M.E redaction library would be useful.

@SteveSandersonMS SteveSandersonMS merged commit 9759023 into main Apr 3, 2025
7 checks passed
@SteveSandersonMS SteveSandersonMS deleted the stevesa/otel-treat-additionalproperties-as-sensitive branch April 3, 2025 10:37
joperezr pushed a commit to joperezr/extensions that referenced this pull request Apr 8, 2025
@github-actions github-actions bot locked and limited conversation to collaborators May 4, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-ai Microsoft.Extensions.AI libraries
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants