From 548dfb10b69ae3938e0c1944f09051dfa3b134a2 Mon Sep 17 00:00:00 2001 From: Ben Thomas Date: Wed, 15 Apr 2026 16:34:28 -0700 Subject: [PATCH] =?UTF-8?q?.NET:=20Bump=20Azure.AI.AgentServer=20packages?= =?UTF-8?q?=20to=201.0.0-beta.1/beta.21=20and=20fix=20br=E2=80=A6=20(#5287?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Bump Azure.AI.AgentServer packages to 1.0.0-beta.1/beta.21 and fix breaking API changes - Azure.AI.AgentServer.Core: 1.0.0-beta.11 -> 1.0.0-beta.21 - Azure.AI.AgentServer.Invocations: 1.0.0-alpha.20260408.4 -> 1.0.0-beta.1 - Azure.AI.AgentServer.Responses: 1.0.0-alpha.20260408.4 -> 1.0.0-beta.1 - Azure.Identity: 1.20.0 -> 1.21.0 (transitive requirement) - Azure.Core: 1.52.0 -> 1.53.0 (transitive requirement) - Remove azure-sdk-for-net dev feed (packages now on nuget.org) - Fix OutputConverter for new builder API (auto-tracked children, split EmitTextDone/EmitDone) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Fixing small issues. --------- Co-authored-by: alliscode Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- dotnet/Directory.Packages.props | 10 +++++----- dotnet/nuget.config | 4 ---- .../samples/04-hosting/FoundryResponsesRepl/Program.cs | 10 +++++++++- .../Hosting/OutputConverter.cs | 5 ++--- 4 files changed, 16 insertions(+), 13 deletions(-) diff --git a/dotnet/Directory.Packages.props b/dotnet/Directory.Packages.props index 36e68c958a..5beaaab40d 100644 --- a/dotnet/Directory.Packages.props +++ b/dotnet/Directory.Packages.props @@ -19,14 +19,14 @@ - - - + + + - - + + diff --git a/dotnet/nuget.config b/dotnet/nuget.config index 202c1fc671..76d943ce16 100644 --- a/dotnet/nuget.config +++ b/dotnet/nuget.config @@ -3,12 +3,8 @@ - - - - diff --git a/dotnet/samples/04-hosting/FoundryResponsesRepl/Program.cs b/dotnet/samples/04-hosting/FoundryResponsesRepl/Program.cs index be0e6ccf7b..8b877dc519 100644 --- a/dotnet/samples/04-hosting/FoundryResponsesRepl/Program.cs +++ b/dotnet/samples/04-hosting/FoundryResponsesRepl/Program.cs @@ -1,3 +1,5 @@ +// Copyright (c) Microsoft. All rights reserved. + // Foundry Responses Client REPL // // Connects to a Foundry Responses agent running on a given endpoint @@ -66,10 +68,16 @@ while (true) Console.ResetColor(); string? input = Console.ReadLine(); - if (string.IsNullOrWhiteSpace(input)) continue; + if (string.IsNullOrWhiteSpace(input)) + { + continue; + } + if (input.Equals("quit", StringComparison.OrdinalIgnoreCase) || input.Equals("exit", StringComparison.OrdinalIgnoreCase)) + { break; + } try { diff --git a/dotnet/src/Microsoft.Agents.AI.Foundry/Hosting/OutputConverter.cs b/dotnet/src/Microsoft.Agents.AI.Foundry/Hosting/OutputConverter.cs index 79aaf768d9..58ba989ebf 100644 --- a/dotnet/src/Microsoft.Agents.AI.Foundry/Hosting/OutputConverter.cs +++ b/dotnet/src/Microsoft.Agents.AI.Foundry/Hosting/OutputConverter.cs @@ -161,7 +161,6 @@ internal static class OutputConverter yield return summaryPart.EmitTextDelta(text); yield return summaryPart.EmitTextDone(text); yield return summaryPart.EmitDone(); - reasoningBuilder.EmitSummaryPartDone(summaryPart); yield return reasoningBuilder.EmitDone(); break; @@ -236,8 +235,8 @@ internal static class OutputConverter if (textBuilder is not null) { var finalText = accumulatedText?.ToString() ?? string.Empty; - yield return textBuilder.EmitDone(finalText); - yield return messageBuilder.EmitContentDone(textBuilder); + yield return textBuilder.EmitTextDone(finalText); + yield return textBuilder.EmitDone(); } yield return messageBuilder.EmitDone();