Fix/02.dotnet agent framework workflow ghmodel sequential.ipynb - #706
Conversation
|
👋 Thanks for contributing Marietta (@marietta-a)! We will review the pull request and get back to you soon. |
There was a problem hiding this comment.
Pull request overview
This PR updates the Lesson 08 multi-agent sequential workflow .NET samples to align with the current Agent Framework workflow APIs and dependency versions.
Changes:
- Updated NuGet/package references in the sequential workflow notebook to newer wildcard version patterns (e.g.,
Microsoft.Extensions.AI10.*). - Migrated agent construction to
GetChatClient(...).AsIChatClient().AsAIAgent(...)in both the notebook and the.csrunnable sample. - Updated workflow streaming execution/event handling to
RunStreamingAsync(...)/AgentResponseUpdateEvent.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| 08-multi-agent/code_samples/workflows-agent-framework/dotNET/02.dotnet-agent-framework-workflow-ghmodel-sequential.ipynb | Updates package version references and migrates sequential workflow code to the newer streaming/event APIs. |
| 08-multi-agent/code_samples/workflows-agent-framework/dotNET/02.dotnet-agent-framework-workflow-ghmodel-sequential.cs | Aligns the runnable C# sample with the updated agent creation pattern used by the current workflow stack. |
Suppressed comments (3)
08-multi-agent/code_samples/workflows-agent-framework/dotNET/02.dotnet-agent-framework-workflow-ghmodel-sequential.ipynb:220
- This notebook output block was edited to show a wildcard package version ("1.*") as the installed version for OpenTelemetry.Api. Installed package output should reflect the resolved concrete version; consider clearing outputs and rerunning (or omit version numbers from the output).
"outputs": [
{
"data": {
"text/html": [
"<div><div></div><div></div><div><strong>Installed Packages</strong><ul><li><span>Azure.Identity, 1.15.0</span></li><li><span>OpenTelemetry.Api, 1.*</span></li><li><span>System.Linq.Async, 6.0.3</span></li></ul></div></div>"
]
08-multi-agent/code_samples/workflows-agent-framework/dotNET/02.dotnet-agent-framework-workflow-ghmodel-sequential.ipynb:249
- This notebook output block was edited to show a wildcard package version ("1.*") as the installed version for Microsoft.Agents.AI.Workflows. Installed package output should reflect the resolved concrete version; consider clearing outputs and rerunning (or omit version numbers from the output).
"outputs": [
{
"data": {
"text/html": [
"<div><div></div><div></div><div><strong>Installed Packages</strong><ul><li><span>Microsoft.Agents.AI.Workflows, 1.*</span></li></ul></div></div>"
]
08-multi-agent/code_samples/workflows-agent-framework/dotNET/02.dotnet-agent-framework-workflow-ghmodel-sequential.ipynb:276
- This notebook output block was edited to show a wildcard pre-release version pattern ("1.-") as the installed version for Microsoft.Agents.AI.OpenAI. Installed package output should reflect the resolved concrete version; consider clearing outputs and rerunning (or omit version numbers from the output).
"outputs": [
{
"data": {
"text/html": [
"<div><div></div><div></div><div><strong>Installed Packages</strong><ul><li><span>Microsoft.Agents.AI.OpenAI, 1.*-*</span></li></ul></div></div>"
]
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| "outputs": [ | ||
| { | ||
| "data": { | ||
| "text/html": [ | ||
| "<div><div></div><div></div><div><strong>Installed Packages</strong><ul><li><span>Microsoft.Extensions.AI, 9.9.1</span></li></ul></div></div>" | ||
| "<div><div></div><div></div><div><strong>Installed Packages</strong><ul><li><span>Microsoft.Extensions.AI, 10.*</span></li></ul></div></div>" | ||
| ] |
| "await foreach (WorkflowEvent evt in run.WatchStreamAsync().ConfigureAwait(false))\n", | ||
| "{\n", | ||
| " if (evt is AgentRunUpdateEvent executorComplete)\n", | ||
| " if (evt is AgentResponseUpdateEvent executorComplete)\n", |
This PR aligns the notebook with the updated sequential workflow