Skip to content

.NET: Surface downstream experimental flags and remove unnecessary suppressions - #3968

Merged
westey (westey-m) merged 4 commits into
microsoft:mainfrom
westey-m:downstream-experimental
Feb 17, 2026
Merged

.NET: Surface downstream experimental flags and remove unnecessary suppressions#3968
westey (westey-m) merged 4 commits into
microsoft:mainfrom
westey-m:downstream-experimental

Conversation

@westey-m

Copy link
Copy Markdown
Contributor

Motivation and Context

#2542

Description

  • Surface downstream experimental flags in core packages
  • Remove unnecessary suppressions

Contribution Checklist

  • The code builds clean without any errors or warnings
  • The PR follows the Contribution Guidelines
  • All unit tests pass, and I have added new tests where possible
  • Is this a breaking change? If yes, add "[BREAKING]" prefix to the title of the PR.

CopilotAI review requested due to automatic review settings February 16, 2026 17:03
@markwallace-microsoftMark Wallace (markwallace-microsoft) added documentation Usage: [Issues, PRs], Target: documentation in the code base and learn docs .NET Usage: [Issues, PRs], Target: .Net labels Feb 16, 2026
@github-actionsgithub-actionsBot changed the title Surface downstream experimental flags and remove unnecessary suppressions.NET: Surface downstream experimental flags and remove unnecessary suppressionsFeb 16, 2026

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR surfaces downstream experimental flags from Microsoft.Extensions.AI (MEAI001) and OpenAI SDK (OPENAI001) by adding Experimental attributes to relevant APIs in the Agent Framework, and removes unnecessary diagnostic suppressions that are no longer needed.

Changes:

  • Introduces a shared DiagnosticIds class that defines experimental diagnostic IDs matching downstream packages for consistency
  • Adds Experimental attributes to OpenAI Response/Assistant extensions and AzureAI extensions
  • Adds Experimental attributes to ContinuationToken-related properties in Abstractions
  • Removes MEAI001/OPENAI001 NoWarn suppressions from projects where experimental attributes now properly surface the warnings

Reviewed changes

Copilot reviewed 20 out of 20 changed files in this pull request and generated no comments.

Show a summary per file
FileDescription
dotnet/src/Shared/DiagnosticIds/DiagnosticsIds.csNew shared class defining experimental diagnostic IDs that match downstream packages
dotnet/src/Shared/DiagnosticIds/README.mdDocumentation for using the DiagnosticIds shared file
dotnet/eng/MSBuild/Shared.propsMSBuild integration to inject DiagnosticIds into projects
dotnet/src/Microsoft.Agents.AI.OpenAI/Microsoft.Agents.AI.OpenAI.csprojEnables DiagnosticIds injection, removes OPENAI001 suppression
dotnet/src/Microsoft.Agents.AI.OpenAI/Extensions/*.csAdds Experimental attributes to OpenAI Response and Assistant extension classes
dotnet/src/Microsoft.Agents.AI.AzureAI/Microsoft.Agents.AI.AzureAI.csprojEnables DiagnosticIds injection
dotnet/src/Microsoft.Agents.AI.AzureAI/AzureAIProjectChatClientExtensions.csAdds Experimental attribute, removes pragma suppressions
dotnet/src/Microsoft.Agents.AI.AzureAI/AzureAIProjectChatClient.csAdds Experimental attribute, removes pragma suppressions
dotnet/src/Microsoft.Agents.AI.Abstractions/Microsoft.Agents.AI.Abstractions.csprojEnables DiagnosticIds injection
dotnet/src/Microsoft.Agents.AI.Abstractions/AgentRunOptions.csAdds Experimental attribute to ContinuationToken property
dotnet/src/Microsoft.Agents.AI.Abstractions/AgentResponse.csAdds Experimental attribute to ContinuationToken property
dotnet/src/Microsoft.Agents.AI.DurableTask/Microsoft.Agents.AI.DurableTask.csprojRemoves MEAI001 suppression
dotnet/src/Microsoft.Agents.AI.CosmosNoSql/Microsoft.Agents.AI.CosmosNoSql.csprojRemoves MEAI001 suppression
dotnet/src/Microsoft.Agents.AI.Hosting.OpenAI/Microsoft.Agents.AI.Hosting.OpenAI.csprojRemoves OPENAI001 suppression
dotnet/tests/Microsoft.Agents.AI.CosmosNoSql.UnitTests/Microsoft.Agents.AI.CosmosNoSql.UnitTests.csprojRemoves MEAI001 suppression
dotnet/samples/HostedAgents/AgentWithHostedMCP/AgentWithHostedMCP.csprojRemoves MEAI001/OPENAI001 suppressions

Comment threaddotnet/src/Shared/DiagnosticIds/DiagnosticsIds.cs Outdated
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentationUsage: [Issues, PRs], Target: documentation in the code base and learn docs.NETUsage: [Issues, PRs], Target: .Net

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@westey-m@rogerbarreto@SergeyMenshykh@markwallace-microsoft