Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@
"\n",
"```xml\n",
"<!-- Core AI Framework -->\n",
"<PackageReference Include=\"Microsoft.Extensions.AI\" Version=\"9.9.0\" />\n",
"<PackageReference Include=\"Microsoft.Extensions.AI\" Version=\"10.*\" />\n",
"\n",
"<!-- Azure OpenAI (Responses API) -->\n",
"<PackageReference Include=\"Azure.AI.OpenAI\" Version=\"2.1.0\" />\n",
"<PackageReference Include=\"Azure.Identity\" Version=\"1.13.1\" />\n",
"<PackageReference Include=\"Azure.Identity\" Version=\"1.15.0\" />\n",
"\n",
"<!-- Agent Framework (Local Development) -->\n",
"<!-- Microsoft.Agents.AI.dll - Core agent abstractions -->\n",
Expand Down Expand Up @@ -133,7 +133,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"id": "4152a00b",
"metadata": {
"language_info": {
Expand All @@ -147,15 +147,15 @@
{
"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>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"#r \"nuget: Microsoft.Extensions.AI, 9.9.1\""
"#r \"nuget: Microsoft.Extensions.AI, 10.*\""
]
},
{
Expand Down Expand Up @@ -187,7 +187,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": null,
"id": "ba48a4c7",
"metadata": {
"language_info": {
Expand All @@ -201,7 +201,7 @@
{
"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.0.1</span></li><li><span>System.Linq.Async, 6.0.3</span></li></ul></div></div>"
"<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>"
]
},
"metadata": {},
Expand All @@ -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.*\""
Comment on lines 212 to +215
]
},
{
Expand All @@ -231,7 +231,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": null,
"id": "ed55fec8",
"metadata": {
"language_info": {
Expand All @@ -245,7 +245,7 @@
{
"data": {
"text/html": [
"<div><div></div><div></div><div><strong>Installed Packages</strong><ul><li><span>Microsoft.Agents.AI.Workflows, 1.0.0-preview.251001.3</span></li></ul></div></div>"
"<div><div></div><div></div><div><strong>Installed Packages</strong><ul><li><span>Microsoft.Agents.AI.Workflows, 1.*</span></li></ul></div></div>"
]
},
"metadata": {},
Expand All @@ -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.*\""
]
},
{
Expand All @@ -273,7 +273,7 @@
{
"data": {
"text/html": [
"<div><div></div><div></div><div><strong>Installed Packages</strong><ul><li><span>Microsoft.Agents.AI.OpenAI, 1.0.0-preview.251001.2</span></li></ul></div></div>"
"<div><div></div><div></div><div><strong>Installed Packages</strong><ul><li><span>Microsoft.Agents.AI.OpenAI, 1.*-*</span></li></ul></div></div>"
]
},
"metadata": {},
Expand All @@ -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.*-*\""
]
},
{
Expand Down Expand Up @@ -314,7 +314,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": null,
"id": "1df9ac4c",
"metadata": {
"language_info": {
Expand All @@ -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.*-*\""
]
Comment on lines +329 to 330
},
{
Expand Down Expand Up @@ -441,7 +441,7 @@
},
{
"cell_type": "code",
"execution_count": 15,
"execution_count": null,
"id": "408e8b23",
"metadata": {
"language_info": {
Expand All @@ -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. \";"
Expand Down Expand Up @@ -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);"
]
},
Expand Down Expand Up @@ -546,7 +546,7 @@
},
{
"cell_type": "code",
"execution_count": 20,
"execution_count": null,
"id": "ec9afabc",
"metadata": {
"language_info": {
Expand All @@ -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": {
Expand All @@ -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",
Comment on lines 588 to 594
Expand Down
Loading