Skip to content

Commit

Permalink
test is green
Browse files Browse the repository at this point in the history
  • Loading branch information
rysweet authored and jackgerrits committed Jan 27, 2025
1 parent ee6f831 commit 73da13f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dotnet/src/Microsoft.AutoGen/Core/AgentRuntime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,9 @@ public async ValueTask<RpcResponse> InvokeRequestAsync(RpcRequest request, Cance

// Proxy the request to the agent.
var originalRequestId = request.RequestId;
var newRequestId = Guid.NewGuid().ToString();
var completion = new TaskCompletionSource<RpcResponse>(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);
Expand Down

0 comments on commit 73da13f

Please sign in to comment.