diff --git a/dotnet/src/Microsoft.AutoGen/Core/AgentRuntime.cs b/dotnet/src/Microsoft.AutoGen/Core/AgentRuntime.cs index 95ea08b1168d..7da485fa874f 100644 --- a/dotnet/src/Microsoft.AutoGen/Core/AgentRuntime.cs +++ b/dotnet/src/Microsoft.AutoGen/Core/AgentRuntime.cs @@ -211,10 +211,9 @@ public async ValueTask InvokeRequestAsync(RpcRequest request, Cance // Proxy the request to the agent. var originalRequestId = request.RequestId; - var newRequestId = Guid.NewGuid().ToString(); var completion = new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously); _pendingRequests.TryAdd(request.RequestId, completion); - request.RequestId = newRequestId; + //request.RequestId = Guid.NewGuid().ToString(); agent.ReceiveMessage(new Message() { Request = request }); // Wait for the response and send it back to the caller. var response = await completion.Task.WaitAsync(s_agentResponseTimeout);