Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dotnet/Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -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" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ private Program(string workflowFile, string? workflowInput)

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;
Expand Down Expand Up @@ -231,7 +232,7 @@ private Program(string workflowFile, string? workflowInput)
}
else
{
await run.Run.DisposeAsync();
// Yield to handle the external request
return requestInfo.Request;
}
break;
Expand Down Expand Up @@ -326,7 +327,7 @@ private Program(string workflowFile, string? workflowInput)
}
}

return default;
return null; // No request to handle
}

/// <summary>
Expand Down
3 changes: 2 additions & 1 deletion workflow-samples/DeepResearch.yaml
Original file line number Diff line number Diff line change
@@ -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:
#
Expand Down
Loading