diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows/MagenticPlanReviewRequest.cs b/dotnet/src/Microsoft.Agents.AI.Workflows/MagenticPlanReviewRequest.cs index fd7b82afe6..7e66cd4c1a 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows/MagenticPlanReviewRequest.cs +++ b/dotnet/src/Microsoft.Agents.AI.Workflows/MagenticPlanReviewRequest.cs @@ -1,6 +1,7 @@ // Copyright (c) Microsoft. All rights reserved. using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Linq; using Microsoft.Extensions.AI; @@ -15,6 +16,7 @@ namespace Microsoft.Agents.AI.Workflows; /// contain the latest progress ledger that determined that no progress has been made or the workflow was in /// a loop. /// Whether the workflow is currently stalled. +[Experimental(DiagnosticConstants.ExperimentalFeatureDiagnostic)] public record MagenticPlanReviewRequest(ChatMessage Plan, MagenticProgressLedger? CurrentProgress, bool IsStalled) { /// diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows/MagenticPlanReviewResponse.cs b/dotnet/src/Microsoft.Agents.AI.Workflows/MagenticPlanReviewResponse.cs index 0a72ccfa0f..952cd9fade 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows/MagenticPlanReviewResponse.cs +++ b/dotnet/src/Microsoft.Agents.AI.Workflows/MagenticPlanReviewResponse.cs @@ -1,6 +1,7 @@ // Copyright (c) Microsoft. All rights reserved. using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using Microsoft.Extensions.AI; namespace Microsoft.Agents.AI.Workflows; @@ -12,6 +13,7 @@ namespace Microsoft.Agents.AI.Workflows; /// /// Review feedback for a generated plan. Empty if the plan is approved as-is and changes are requested. /// +[Experimental(DiagnosticConstants.ExperimentalFeatureDiagnostic)] public record MagenticPlanReviewResponse(List Review) { internal bool IsApproved => this.Review.Count == 0; diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows/MagenticProgressLedger.cs b/dotnet/src/Microsoft.Agents.AI.Workflows/MagenticProgressLedger.cs index 445007d3f3..65058e7430 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows/MagenticProgressLedger.cs +++ b/dotnet/src/Microsoft.Agents.AI.Workflows/MagenticProgressLedger.cs @@ -14,6 +14,7 @@ namespace Microsoft.Agents.AI.Workflows; /// /// Maintains a ledger of progress made by the Magentic workflow. /// +[Experimental(DiagnosticConstants.ExperimentalFeatureDiagnostic)] public class MagenticProgressLedger { internal static readonly BooleanProgressLedgerSlot IsRequestSatisfiedSlot = new("is_request_satisfied", diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows/MagenticWorkflowBuilder.cs b/dotnet/src/Microsoft.Agents.AI.Workflows/MagenticWorkflowBuilder.cs index f5b8091dc2..7c1e801ab1 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows/MagenticWorkflowBuilder.cs +++ b/dotnet/src/Microsoft.Agents.AI.Workflows/MagenticWorkflowBuilder.cs @@ -1,6 +1,7 @@ // Copyright (c) Microsoft. All rights reserved. using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; using Microsoft.Agents.AI.Workflows.Specialized.Magentic; @@ -25,6 +26,7 @@ namespace Microsoft.Agents.AI.Workflows; /// not supported on the ManagerAgent. /// /// +[Experimental(DiagnosticConstants.ExperimentalFeatureDiagnostic)] public class MagenticWorkflowBuilder(AIAgent managerAgent) { private readonly List _team = new(); diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows/Microsoft.Agents.AI.Workflows.csproj b/dotnet/src/Microsoft.Agents.AI.Workflows/Microsoft.Agents.AI.Workflows.csproj index 8b6e57750b..a119f51ac1 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows/Microsoft.Agents.AI.Workflows.csproj +++ b/dotnet/src/Microsoft.Agents.AI.Workflows/Microsoft.Agents.AI.Workflows.csproj @@ -2,7 +2,7 @@ true - $(NoWarn);MEAI001 + $(NoWarn);MEAI001;MAAIW001 diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows/Specialized/Magentic/MagenticOrchestrator.cs b/dotnet/src/Microsoft.Agents.AI.Workflows/Specialized/Magentic/MagenticOrchestrator.cs index b272ed102d..afd4e606e9 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows/Specialized/Magentic/MagenticOrchestrator.cs +++ b/dotnet/src/Microsoft.Agents.AI.Workflows/Specialized/Magentic/MagenticOrchestrator.cs @@ -2,6 +2,7 @@ using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Text.Json.Serialization; using System.Threading; @@ -17,6 +18,7 @@ namespace Microsoft.Agents.AI.Workflows.Specialized.Magentic; [JsonDerivedType(typeof(MagenticPlanCreatedEvent))] [JsonDerivedType(typeof(MagenticReplannedEvent))] [JsonDerivedType(typeof(MagenticProgressLedgerUpdatedEvent))] +[Experimental(DiagnosticConstants.ExperimentalFeatureDiagnostic)] public abstract class MagenticOrchestratorEvent(object? data) : WorkflowEvent(data) { } @@ -25,6 +27,7 @@ public abstract class MagenticOrchestratorEvent(object? data) : WorkflowEvent(da /// Represents the creation of the initial plan /// /// +[Experimental(DiagnosticConstants.ExperimentalFeatureDiagnostic)] public sealed class MagenticPlanCreatedEvent(ChatMessage fullTaskLeger) : MagenticOrchestratorEvent(fullTaskLeger) { /// @@ -37,6 +40,7 @@ public sealed class MagenticPlanCreatedEvent(ChatMessage fullTaskLeger) : Magent /// Represents the creation of a new plan in response to a stall. /// /// +[Experimental(DiagnosticConstants.ExperimentalFeatureDiagnostic)] public sealed class MagenticReplannedEvent(ChatMessage fullTaskLeger) : MagenticOrchestratorEvent(fullTaskLeger) { /// @@ -49,6 +53,7 @@ public sealed class MagenticReplannedEvent(ChatMessage fullTaskLeger) : Magentic /// Represents an update to the when running a coordination round. /// /// +[Experimental(DiagnosticConstants.ExperimentalFeatureDiagnostic)] public sealed class MagenticProgressLedgerUpdatedEvent(MagenticProgressLedger progressLedger) : MagenticOrchestratorEvent(progressLedger) { ///