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,