From d7094d54328d6cfd9613c4ee65bf0ba612193052 Mon Sep 17 00:00:00 2001 From: Mark Wallace <127216156+markwallace-microsoft@users.noreply.github.com> Date: Wed, 15 Oct 2025 15:58:41 +0100 Subject: [PATCH] .NET: ChatClientBuilderExtensions should be in the M.E.AI namespace (#1484) * ChatClientBuilderExtensions should be in the M.E.AI namespace * ChatClientBuilderExtensions should be in the M.E.AI namespace --- .../GettingStarted/Agents/Agent_Step14_Middleware/Program.cs | 1 - .../ChatClient/ChatClientBuilderExtensions.cs | 4 ++-- .../ChatClient/ChatClientBuilderExtensionsTests.cs | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/dotnet/samples/GettingStarted/Agents/Agent_Step14_Middleware/Program.cs b/dotnet/samples/GettingStarted/Agents/Agent_Step14_Middleware/Program.cs index ea59c84ba4..28a50cc7d7 100644 --- a/dotnet/samples/GettingStarted/Agents/Agent_Step14_Middleware/Program.cs +++ b/dotnet/samples/GettingStarted/Agents/Agent_Step14_Middleware/Program.cs @@ -10,7 +10,6 @@ using System.Text.RegularExpressions; using Azure.AI.OpenAI; using Azure.Identity; using Microsoft.Agents.AI; -using Microsoft.Agents.AI.ChatClient; using Microsoft.Extensions.AI; // Get Azure AI Foundry configuration from environment variables diff --git a/dotnet/src/Microsoft.Agents.AI/ChatClient/ChatClientBuilderExtensions.cs b/dotnet/src/Microsoft.Agents.AI/ChatClient/ChatClientBuilderExtensions.cs index 124f66760e..fd4b6df60a 100644 --- a/dotnet/src/Microsoft.Agents.AI/ChatClient/ChatClientBuilderExtensions.cs +++ b/dotnet/src/Microsoft.Agents.AI/ChatClient/ChatClientBuilderExtensions.cs @@ -2,11 +2,11 @@ using System; using System.Collections.Generic; -using Microsoft.Extensions.AI; +using Microsoft.Agents.AI; using Microsoft.Extensions.Logging; using Microsoft.Shared.Diagnostics; -namespace Microsoft.Agents.AI.ChatClient; +namespace Microsoft.Extensions.AI; /// /// Provides extension methods for building a from a . diff --git a/dotnet/tests/Microsoft.Agents.AI.UnitTests/ChatClient/ChatClientBuilderExtensionsTests.cs b/dotnet/tests/Microsoft.Agents.AI.UnitTests/ChatClient/ChatClientBuilderExtensionsTests.cs index cbcaaf94de..3877358644 100644 --- a/dotnet/tests/Microsoft.Agents.AI.UnitTests/ChatClient/ChatClientBuilderExtensionsTests.cs +++ b/dotnet/tests/Microsoft.Agents.AI.UnitTests/ChatClient/ChatClientBuilderExtensionsTests.cs @@ -2,7 +2,6 @@ using System; using System.Collections.Generic; -using Microsoft.Agents.AI.ChatClient; using Microsoft.Extensions.AI; using Microsoft.Extensions.Logging; using Moq;