Skip to content

Fix/02.dotnet agent framework workflow ghmodel sequential.ipynb - #706

Open
Marietta (marietta-a) wants to merge 2 commits into
microsoft:mainfrom
marietta-a:fix/02.dotnet-agent-framework-workflow-ghmodel-sequential.ipynb
Open

Fix/02.dotnet agent framework workflow ghmodel sequential.ipynb#706
Marietta (marietta-a) wants to merge 2 commits into
microsoft:mainfrom
marietta-a:fix/02.dotnet-agent-framework-workflow-ghmodel-sequential.ipynb

Conversation

@marietta-a

Copy link
Copy Markdown
Contributor

This PR aligns the notebook with the updated sequential workflow

Copilot AI lite review requested due to automatic review settings August 4, 2026 09:47
@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

👋 Thanks for contributing Marietta (@marietta-a)! We will review the pull request and get back to you soon.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.AI 10.*).
  • Migrated agent construction to GetChatClient(...).AsIChatClient().AsAIAgent(...) in both the notebook and the .cs runnable 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.

Comment on lines 161 to 166
"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",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants