.NET Workflows - Sample and Package Update (#1759)

* Update #1

* Sample comments

* Formatting

* Whitespace
This commit is contained in:
Chris
2025-10-28 16:26:55 -07:00
committed by GitHub
Unverified
parent eed7e59f3f
commit 00a78d7bc6
3 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -17,7 +17,7 @@
<PackageVersion Include="Aspire.Microsoft.Azure.Cosmos" Version="$(AspireAppHostSdkVersion)" />
<PackageVersion Include="CommunityToolkit.Aspire.OllamaSharp" Version="9.8.0" />
<!-- Azure.* -->
<PackageVersion Include="Azure.AI.Agents.Persistent" Version="1.2.0-beta.6" />
<PackageVersion Include="Azure.AI.Agents.Persistent" Version="1.2.0-beta.7" />
<PackageVersion Include="Azure.AI.OpenAI" Version="2.5.0-beta.1" />
<PackageVersion Include="Azure.Identity" Version="1.17.0" />
<PackageVersion Include="Azure.Monitor.OpenTelemetry.Exporter" Version="1.4.0" />
@@ -184,6 +184,7 @@ internal sealed class Program
private async Task<ExternalRequest?> MonitorAndDisposeWorkflowRunAsync(Checkpointed<StreamingRun> run, object? response = null)
{
// Always dispose the run when done.
await using IAsyncDisposable disposeRun = run;
bool hasStreamed = false;
@@ -231,7 +232,7 @@ internal sealed class Program
}
else
{
await run.Run.DisposeAsync();
// Yield to handle the external request
return requestInfo.Request;
}
break;
@@ -326,7 +327,7 @@ internal sealed class Program
}
}
return default;
return null; // No request to handle
}
/// <summary>
+2 -1
View File
@@ -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:
#