From f322dbf45ebdf3f3244691875728bace0a72ebde Mon Sep 17 00:00:00 2001 From: Chris Rickman Date: Tue, 28 Oct 2025 15:01:34 -0700 Subject: [PATCH 1/4] Update #1 --- dotnet/Directory.Packages.props | 2 +- workflow-samples/DeepResearch.yaml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dotnet/Directory.Packages.props b/dotnet/Directory.Packages.props index 7a5bd32aab..afa5bc77f0 100644 --- a/dotnet/Directory.Packages.props +++ b/dotnet/Directory.Packages.props @@ -17,7 +17,7 @@ - + diff --git a/workflow-samples/DeepResearch.yaml b/workflow-samples/DeepResearch.yaml index e1db3cc5c5..be84e92bfb 100644 --- a/workflow-samples/DeepResearch.yaml +++ b/workflow-samples/DeepResearch.yaml @@ -1,5 +1,6 @@ # -# This workflow demonstrates a multi-agent orchestrator that attempts to address complex user requests. +# This workflow coordinates multiple agents in order to address complex user requests +# according to the "Magentic" orchestration pattern introduced by AutoGen. # # For this workflow, several agents used, each with a prompt specific to their role: # From d51b83b11c61c47336c368ed206fc09f01cd06b8 Mon Sep 17 00:00:00 2001 From: Chris Rickman Date: Tue, 28 Oct 2025 15:38:24 -0700 Subject: [PATCH 2/4] Sample comments --- .../Workflows/Declarative/ExecuteWorkflow/Program.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dotnet/samples/GettingStarted/Workflows/Declarative/ExecuteWorkflow/Program.cs b/dotnet/samples/GettingStarted/Workflows/Declarative/ExecuteWorkflow/Program.cs index 4b26aa14f1..7c1f56b3b7 100644 --- a/dotnet/samples/GettingStarted/Workflows/Declarative/ExecuteWorkflow/Program.cs +++ b/dotnet/samples/GettingStarted/Workflows/Declarative/ExecuteWorkflow/Program.cs @@ -184,6 +184,7 @@ private Program(string workflowFile, string? workflowInput) private async Task MonitorAndDisposeWorkflowRunAsync(Checkpointed run, object? response = null) { + // Always dispose the run when done. await using IAsyncDisposable disposeRun = run; bool hasStreamed = false; @@ -231,8 +232,7 @@ private Program(string workflowFile, string? workflowInput) } else { - await run.Run.DisposeAsync(); - return requestInfo.Request; + return requestInfo.Request; // Yield to handle the external request } break; @@ -326,7 +326,7 @@ private Program(string workflowFile, string? workflowInput) } } - return default; + return null; // No request to handle } /// From 91d13f7b57ca3558f0073019d18f18f85fff7095 Mon Sep 17 00:00:00 2001 From: Chris Rickman Date: Tue, 28 Oct 2025 15:40:21 -0700 Subject: [PATCH 3/4] Formatting --- .../Workflows/Declarative/ExecuteWorkflow/Program.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dotnet/samples/GettingStarted/Workflows/Declarative/ExecuteWorkflow/Program.cs b/dotnet/samples/GettingStarted/Workflows/Declarative/ExecuteWorkflow/Program.cs index 7c1f56b3b7..cb0902356b 100644 --- a/dotnet/samples/GettingStarted/Workflows/Declarative/ExecuteWorkflow/Program.cs +++ b/dotnet/samples/GettingStarted/Workflows/Declarative/ExecuteWorkflow/Program.cs @@ -232,7 +232,8 @@ private Program(string workflowFile, string? workflowInput) } else { - return requestInfo.Request; // Yield to handle the external request + // Yield to handle the external request + return requestInfo.Request; } break; From ee4193598df745e7a09eec7350f19ccc8e617f45 Mon Sep 17 00:00:00 2001 From: Chris Rickman Date: Tue, 28 Oct 2025 15:41:50 -0700 Subject: [PATCH 4/4] Whitespace --- .../Workflows/Declarative/ExecuteWorkflow/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotnet/samples/GettingStarted/Workflows/Declarative/ExecuteWorkflow/Program.cs b/dotnet/samples/GettingStarted/Workflows/Declarative/ExecuteWorkflow/Program.cs index cb0902356b..ce6a19b0d3 100644 --- a/dotnet/samples/GettingStarted/Workflows/Declarative/ExecuteWorkflow/Program.cs +++ b/dotnet/samples/GettingStarted/Workflows/Declarative/ExecuteWorkflow/Program.cs @@ -233,7 +233,7 @@ private Program(string workflowFile, string? workflowInput) else { // Yield to handle the external request - return requestInfo.Request; + return requestInfo.Request; } break;