From 1326d79a26d2fb106fc7fb7f6828b3f688436239 Mon Sep 17 00:00:00 2001 From: Jacob Alber Date: Fri, 10 Apr 2026 07:38:18 -0400 Subject: [PATCH] fix: Remove '$' from exception strings --- .../Specialized/AIAgentUnservicedRequestsCollector.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows/Specialized/AIAgentUnservicedRequestsCollector.cs b/dotnet/src/Microsoft.Agents.AI.Workflows/Specialized/AIAgentUnservicedRequestsCollector.cs index cc51292a57..7e4f8c8c9d 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows/Specialized/AIAgentUnservicedRequestsCollector.cs +++ b/dotnet/src/Microsoft.Agents.AI.Workflows/Specialized/AIAgentUnservicedRequestsCollector.cs @@ -42,7 +42,7 @@ internal sealed class AIAgentUnservicedRequestsCollector(AIContentExternalHandle { if (this._userInputRequests.ContainsKey(userInputRequest.RequestId)) { - throw new InvalidOperationException($"ToolApprovalRequestContent with duplicate RequestId: ${userInputRequest.RequestId}"); + throw new InvalidOperationException($"ToolApprovalRequestContent with duplicate RequestId: {userInputRequest.RequestId}"); } // It is an error to simultaneously have multiple outstanding user input requests with the same ID. @@ -63,7 +63,7 @@ internal sealed class AIAgentUnservicedRequestsCollector(AIContentExternalHandle { if (this._functionCalls.ContainsKey(functionCall.CallId)) { - throw new InvalidOperationException($"FunctionCallContent with duplicate CallId: ${functionCall.CallId}"); + throw new InvalidOperationException($"FunctionCallContent with duplicate CallId: {functionCall.CallId}"); } this._functionCalls.Add(functionCall.CallId, functionCall);