Fix AgentRunResponse serialization. (#273)

This commit is contained in:
Aditya Mandaleeka
2025-07-29 18:20:29 -07:00
committed by GitHub
Unverified
parent 02814a4fc0
commit 89de1c3c2f
@@ -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);