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

* Surface downstream experimental flags and remove unecessary suppressions

* Fix format error

* Fix file encoding.

* Address PR comments.
This commit is contained in:
westey
2026-02-17 12:53:33 +00:00
committed by GitHub
parent 54a67d96cd
commit 8015e00f56
22 changed files with 93 additions and 14 deletions
@@ -0,0 +1,33 @@
// Copyright (c) Microsoft. All rights reserved.
namespace Microsoft.Shared.DiagnosticIds;
/// <summary>
/// Various diagnostic IDs reported by this repo.
/// </summary>
internal static class DiagnosticIds
{
/// <summary>
/// Experiments supported by this repo.
/// </summary>
internal static class Experiments
{
// This experiment ID is used for all experimental features in the Microsoft Agent Framework.
internal const string AgentsAIExperiments = "MAAI001";
// These diagnostic IDs are defined by the MEAI package for its experimental APIs.
// We use the same IDs so consumers do not need to suppress additional diagnostics
// when using the experimental MEAI APIs.
internal const string AIResponseContinuations = MEAIExperiments;
internal const string AIMcpServers = MEAIExperiments;
internal const string AIFunctionApprovals = MEAIExperiments;
// These diagnostic IDs are defined by the OpenAI package for its experimental APIs.
// We use the same IDs so consumers do not need to suppress additional diagnostics
// when using the experimental OpenAI APIs.
internal const string AIOpenAIResponses = "OPENAI001";
internal const string AIOpenAIAssistants = "OPENAI001";
private const string MEAIExperiments = "MEAI001";
}
}
+11
View File
@@ -0,0 +1,11 @@
# Diagnostic IDs
Defines various diagnostic IDs reported by this repo.
To use this in your project, add the following to your `.csproj` file:
```xml
<PropertyGroup>
<InjectSharedDiagnosticIds>true</InjectSharedDiagnosticIds>
</PropertyGroup>
```