From f1694b05072ff78fe4e1801e09c5ebb9ab08ee9f Mon Sep 17 00:00:00 2001 From: Michael McKechney Date: Mon, 6 Oct 2025 17:46:37 -0400 Subject: [PATCH] Correcting parameter assignment and using parameter naming vs relying on position (#1239) --- .../PersistentAgentsClientExtensions.cs | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/dotnet/src/Microsoft.Agents.AI.AzureAI/PersistentAgentsClientExtensions.cs b/dotnet/src/Microsoft.Agents.AI.AzureAI/PersistentAgentsClientExtensions.cs index 96b4d0524f..1772b13991 100644 --- a/dotnet/src/Microsoft.Agents.AI.AzureAI/PersistentAgentsClientExtensions.cs +++ b/dotnet/src/Microsoft.Agents.AI.AzureAI/PersistentAgentsClientExtensions.cs @@ -110,9 +110,10 @@ public static class PersistentAgentsClientExtensions } var createPersistentAgentResponse = await persistentAgentsClient.Administration.CreateAgentAsync( - model, - name, - instructions, + model: model, + name: name, + description: description, + instructions: instructions, tools: tools, toolResources: toolResources, temperature: temperature, @@ -163,9 +164,10 @@ public static class PersistentAgentsClientExtensions } var createPersistentAgentResponse = persistentAgentsClient.Administration.CreateAgent( - model, - name, - instructions, + model: model, + name: name, + description: description, + instructions: instructions, tools: tools, toolResources: toolResources, temperature: temperature,