From 14aa96d531ce2901f83a3806111dd2e0e5e549a8 Mon Sep 17 00:00:00 2001 From: Roger Barreto <19890735+RogerBarreto@users.noreply.github.com> Date: Wed, 25 Feb 2026 19:39:01 +0000 Subject: [PATCH] Move s_modelWriterOptionsWire field before methods that use it Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../AzureAIProjectChatClientExtensions.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dotnet/src/Microsoft.Agents.AI.AzureAI/AzureAIProjectChatClientExtensions.cs b/dotnet/src/Microsoft.Agents.AI.AzureAI/AzureAIProjectChatClientExtensions.cs index 4613f37498..126e629af2 100644 --- a/dotnet/src/Microsoft.Agents.AI.AzureAI/AzureAIProjectChatClientExtensions.cs +++ b/dotnet/src/Microsoft.Agents.AI.AzureAI/AzureAIProjectChatClientExtensions.cs @@ -352,6 +352,8 @@ public static partial class AzureAIProjectChatClientExtensions #region Private + private static readonly ModelReaderWriterOptions s_modelWriterOptionsWire = new("W"); + /// /// Asynchronously retrieves an agent record by name using the protocol method to inject user-agent headers. /// @@ -376,8 +378,6 @@ public static partial class AzureAIProjectChatClientExtensions return result ?? throw new InvalidOperationException($"Failed to create agent version for agent '{agentName}'."); } - private static readonly ModelReaderWriterOptions s_modelWriterOptionsWire = new("W"); - private static async Task CreateAIAgentAsync( this AIProjectClient aiProjectClient, string name,