Move s_modelWriterOptionsWire field before methods that use it

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Roger Barreto
2026-02-25 19:39:01 +00:00
Unverified
parent 14f28dc0f5
commit 14aa96d531
@@ -352,6 +352,8 @@ public static partial class AzureAIProjectChatClientExtensions
#region Private
private static readonly ModelReaderWriterOptions s_modelWriterOptionsWire = new("W");
/// <summary>
/// Asynchronously retrieves an agent record by name using the protocol method to inject user-agent headers.
/// </summary>
@@ -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<ChatClientAgent> CreateAIAgentAsync(
this AIProjectClient aiProjectClient,
string name,