From e64fb4a435f601e792c2c707fa04c032fce8b1d3 Mon Sep 17 00:00:00 2001 From: Shyju Krishnankutty Date: Tue, 27 Jan 2026 19:16:51 -0800 Subject: [PATCH] Fix visibility of new types --- .../DurableWorkflowRunner.cs | 6 +++--- .../WorkflowExecutionPlan.cs | 2 +- .../src/Microsoft.Agents.AI.DurableTask/WorkflowHelper.cs | 6 +++--- .../Microsoft.Agents.AI.DurableTask/WorkflowNamingHelper.cs | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/dotnet/src/Microsoft.Agents.AI.DurableTask/DurableWorkflowRunner.cs b/dotnet/src/Microsoft.Agents.AI.DurableTask/DurableWorkflowRunner.cs index 3f59aaea86..247b87c27b 100644 --- a/dotnet/src/Microsoft.Agents.AI.DurableTask/DurableWorkflowRunner.cs +++ b/dotnet/src/Microsoft.Agents.AI.DurableTask/DurableWorkflowRunner.cs @@ -29,7 +29,7 @@ namespace Microsoft.Agents.AI.DurableTask; /// Understand the expected request and response types for proper serialization /// /// -public sealed record PendingExternalEventStatus( +internal sealed record PendingExternalEventStatus( string EventName, string Input, string RequestType, @@ -57,7 +57,7 @@ public sealed record PendingExternalEventStatus( /// /// /// -public sealed class DurableWorkflowCustomStatus +internal sealed class DurableWorkflowCustomStatus { /// /// Gets or sets the pending external event status when waiting for HITL input. @@ -184,7 +184,7 @@ public sealed class DurableWorkflowCustomStatus /// └─────────────────────────────────────────────────────────────────────────────────┘ /// /// -public class DurableWorkflowRunner +internal class DurableWorkflowRunner { /// /// Initializes a new instance of the class. diff --git a/dotnet/src/Microsoft.Agents.AI.DurableTask/WorkflowExecutionPlan.cs b/dotnet/src/Microsoft.Agents.AI.DurableTask/WorkflowExecutionPlan.cs index 66647fcd95..1312ba7a06 100644 --- a/dotnet/src/Microsoft.Agents.AI.DurableTask/WorkflowExecutionPlan.cs +++ b/dotnet/src/Microsoft.Agents.AI.DurableTask/WorkflowExecutionPlan.cs @@ -5,7 +5,7 @@ namespace Microsoft.Agents.AI.DurableTask; /// /// Represents the complete execution plan for a workflow, including parallel execution levels. /// -public sealed class WorkflowExecutionPlan +internal sealed class WorkflowExecutionPlan { /// /// The execution levels in order. Each level contains executors that can run in parallel. diff --git a/dotnet/src/Microsoft.Agents.AI.DurableTask/WorkflowHelper.cs b/dotnet/src/Microsoft.Agents.AI.DurableTask/WorkflowHelper.cs index 231cd34d23..35db3052c3 100644 --- a/dotnet/src/Microsoft.Agents.AI.DurableTask/WorkflowHelper.cs +++ b/dotnet/src/Microsoft.Agents.AI.DurableTask/WorkflowHelper.cs @@ -10,7 +10,7 @@ namespace Microsoft.Agents.AI.DurableTask; /// The unique identifier of the executor. /// Indicates whether this executor is an agentic executor. /// The request port if this executor is a request port executor; otherwise, null. -public sealed record WorkflowExecutorInfo(string ExecutorId, bool IsAgenticExecutor, RequestPort? RequestPort = null) +internal sealed record WorkflowExecutorInfo(string ExecutorId, bool IsAgenticExecutor, RequestPort? RequestPort = null) { /// /// Gets a value indicating whether this executor is a request port executor (human-in-the-loop). @@ -25,12 +25,12 @@ public sealed record WorkflowExecutorInfo(string ExecutorId, bool IsAgenticExecu /// The level number (0-based, starting from the root executor). /// The executors that can run in parallel at this level. /// Indicates if this level is a Fan-In point (has executors with multiple predecessors). -public sealed record WorkflowExecutionLevel(int Level, List Executors, bool IsFanIn); +internal sealed record WorkflowExecutionLevel(int Level, List Executors, bool IsFanIn); /// /// Provides helper methods for analyzing and executing workflows. /// -public static class WorkflowHelper +internal static class WorkflowHelper { /// /// Accepts a workflow instance and returns a list of executors with metadata in the order they should be executed. diff --git a/dotnet/src/Microsoft.Agents.AI.DurableTask/WorkflowNamingHelper.cs b/dotnet/src/Microsoft.Agents.AI.DurableTask/WorkflowNamingHelper.cs index 6c53fd5b36..feabe90ee6 100644 --- a/dotnet/src/Microsoft.Agents.AI.DurableTask/WorkflowNamingHelper.cs +++ b/dotnet/src/Microsoft.Agents.AI.DurableTask/WorkflowNamingHelper.cs @@ -5,7 +5,7 @@ namespace Microsoft.Agents.AI.DurableTask; /// /// Provides helper methods for workflow naming conventions used in durable orchestrations. /// -public static class WorkflowNamingHelper +internal static class WorkflowNamingHelper { /// /// The prefix used for durable workflow orchestration function names.