From 89de1c3c2fe296b1122eabb6c73cf561a4ccd73d Mon Sep 17 00:00:00 2001 From: Aditya Mandaleeka Date: Tue, 29 Jul 2025 18:20:29 -0700 Subject: [PATCH] Fix AgentRunResponse serialization. (#273) --- .../HelloHttpApi.ApiService/ChatClientAgentActor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotnet/samples/HelloHttpApi/HelloHttpApi.ApiService/ChatClientAgentActor.cs b/dotnet/samples/HelloHttpApi/HelloHttpApi.ApiService/ChatClientAgentActor.cs index 88bcd7968e..dc29511e73 100644 --- a/dotnet/samples/HelloHttpApi/HelloHttpApi.ApiService/ChatClientAgentActor.cs +++ b/dotnet/samples/HelloHttpApi/HelloHttpApi.ApiService/ChatClientAgentActor.cs @@ -99,7 +99,7 @@ internal sealed class ChatClientAgentActor( var serializedRunResponse = JsonSerializer.SerializeToElement( updates.ToAgentRunResponse(), - AgentAbstractionsJsonUtilities.DefaultOptions.GetTypeInfo(typeof(AgentRunResponseUpdate))); + AgentAbstractionsJsonUtilities.DefaultOptions.GetTypeInfo(typeof(AgentRunResponse))); var writeResponse = await context.WriteAsync( new(this._etag, [new UpdateRequestOperation(requestId, RequestStatus.Completed, serializedRunResponse)]), cancellationToken) .ConfigureAwait(false);