diff --git a/08-multi-agent/code_samples/workflows-agent-framework/dotNET/01.dotnet-agent-framework-workflow-ghmodel-basic.ipynb b/08-multi-agent/code_samples/workflows-agent-framework/dotNET/01.dotnet-agent-framework-workflow-ghmodel-basic.ipynb
index de6b7a51d5..85943ec007 100644
--- a/08-multi-agent/code_samples/workflows-agent-framework/dotNET/01.dotnet-agent-framework-workflow-ghmodel-basic.ipynb
+++ b/08-multi-agent/code_samples/workflows-agent-framework/dotNET/01.dotnet-agent-framework-workflow-ghmodel-basic.ipynb
@@ -39,11 +39,11 @@
"\n",
"```xml\n",
"\n",
- "\n",
+ "\n",
"\n",
"\n",
"\n",
- "\n",
+ "\n",
"\n",
"\n",
"\n",
@@ -133,7 +133,7 @@
},
{
"cell_type": "code",
- "execution_count": 1,
+ "execution_count": null,
"id": "4152a00b",
"metadata": {
"language_info": {
@@ -147,7 +147,7 @@
{
"data": {
"text/html": [
- "
Installed Packages- Microsoft.Extensions.AI, 9.9.1
"
+ "Installed Packages- Microsoft.Extensions.AI, 10.*
"
]
},
"metadata": {},
@@ -155,7 +155,7 @@
}
],
"source": [
- "#r \"nuget: Microsoft.Extensions.AI, 9.9.1\""
+ "#r \"nuget: Microsoft.Extensions.AI, 10.*\""
]
},
{
@@ -187,7 +187,7 @@
},
{
"cell_type": "code",
- "execution_count": 3,
+ "execution_count": null,
"id": "ba48a4c7",
"metadata": {
"language_info": {
@@ -201,7 +201,7 @@
{
"data": {
"text/html": [
- "Installed Packages- Azure.Identity, 1.15.0
- OpenTelemetry.Api, 1.0.1
- System.Linq.Async, 6.0.3
"
+ "Installed Packages- Azure.Identity, 1.15.0
- OpenTelemetry.Api, 1.*
- System.Linq.Async, 6.0.3
"
]
},
"metadata": {},
@@ -211,8 +211,8 @@
"source": [
"#r \"nuget: Azure.Identity, 1.15.0\"\n",
"#r \"nuget: System.Linq.Async, 6.0.3\"\n",
- "#r \"nuget: OpenTelemetry.Api, 1.0.0\"\n",
- "#r \"nuget: OpenTelemetry.Api, 1.0.0\""
+ "#r \"nuget: OpenTelemetry.Api, 1.*\"\n",
+ "#r \"nuget: OpenTelemetry.Api, 1.*\""
]
},
{
@@ -231,7 +231,7 @@
},
{
"cell_type": "code",
- "execution_count": 5,
+ "execution_count": null,
"id": "ed55fec8",
"metadata": {
"language_info": {
@@ -245,7 +245,7 @@
{
"data": {
"text/html": [
- "Installed Packages- Microsoft.Agents.AI.Workflows, 1.0.0-preview.251001.3
"
+ "Installed Packages- Microsoft.Agents.AI.Workflows, 1.*
"
]
},
"metadata": {},
@@ -254,7 +254,7 @@
],
"source": [
"\n",
- "#r \"nuget: Microsoft.Agents.AI.Workflows, 1.0.0-preview.251001.3\""
+ "#r \"nuget: Microsoft.Agents.AI.Workflows, 1.*\""
]
},
{
@@ -273,7 +273,7 @@
{
"data": {
"text/html": [
- "Installed Packages- Microsoft.Agents.AI.OpenAI, 1.0.0-preview.251001.2
"
+ "Installed Packages- Microsoft.Agents.AI.OpenAI, 1.*-*
"
]
},
"metadata": {},
@@ -282,7 +282,7 @@
],
"source": [
"\n",
- "#r \"nuget: Microsoft.Agents.AI.OpenAI, 1.0.0-preview.251001.3\""
+ "#r \"nuget: Microsoft.Agents.AI.OpenAI, 1.*-*\""
]
},
{
@@ -314,7 +314,7 @@
},
{
"cell_type": "code",
- "execution_count": 8,
+ "execution_count": null,
"id": "1df9ac4c",
"metadata": {
"language_info": {
@@ -326,7 +326,7 @@
},
"outputs": [],
"source": [
- "// #r \"nuget: Microsoft.Extensions.AI.OpenAI, 9.9.0-preview.1.25458.4\""
+ "// #r \"nuget: Microsoft.Extensions.AI.OpenAI, 1.*-*\""
]
},
{
@@ -441,7 +441,7 @@
},
{
"cell_type": "code",
- "execution_count": 15,
+ "execution_count": null,
"id": "408e8b23",
"metadata": {
"language_info": {
@@ -455,7 +455,7 @@
"source": [
"const string ReviewerAgentName = \"Concierge\";\n",
"const string ReviewerAgentInstructions = @\"\n",
- " You are an are hotel concierge who has opinions about providing the most local and authentic experiences for travelers.\n",
+ " You are a hotel concierge who has opinions about providing the most local and authentic experiences for travelers.\n",
" The goal is to determine if the front desk travel agent has recommended the best non-touristy experience for a traveler.\n",
" If so, state that it is approved.\n",
" If not, provide insight on how to refine the recommendation without using a specific example. \";"
@@ -500,9 +500,9 @@
},
"outputs": [],
"source": [
- "AIAgent reviewerAgent = azureClient.GetOpenAIResponseClient(deployment).CreateAIAgent(\n",
+ "AIAgent reviewerAgent = azureClient.GetChatClient(deployment).AsIChatClient().AsAIAgent(\n",
" name:ReviewerAgentName,instructions:ReviewerAgentInstructions);\n",
- "AIAgent frontDeskAgent = azureClient.GetOpenAIResponseClient(deployment).CreateAIAgent(\n",
+ "AIAgent frontDeskAgent = azureClient.GetChatClient(deployment).AsIChatClient().AsAIAgent(\n",
" name:FrontDeskAgentName,instructions:FrontDeskAgentInstructions);"
]
},
@@ -546,7 +546,7 @@
},
{
"cell_type": "code",
- "execution_count": 20,
+ "execution_count": null,
"id": "ec9afabc",
"metadata": {
"language_info": {
@@ -558,12 +558,12 @@
},
"outputs": [],
"source": [
- "StreamingRun run = await InProcessExecution.StreamAsync(workflow, userMessage);"
+ "StreamingRun run = await InProcessExecution.RunStreamingAsync(workflow, userMessage);"
]
},
{
"cell_type": "code",
- "execution_count": 21,
+ "execution_count": null,
"id": "6bea90c0",
"metadata": {
"language_info": {
@@ -588,7 +588,7 @@
"string messageData=\"\";\n",
"await foreach (WorkflowEvent evt in run.WatchStreamAsync().ConfigureAwait(false))\n",
"{\n",
- " if (evt is AgentRunUpdateEvent executorComplete)\n",
+ " if (evt is AgentResponseUpdateEvent executorComplete)\n",
" {\n",
" if(id==\"\")\n",
" {\n",