.NET: Improve fidelity of OpenAI Responses server and add Conversations (#1907)

* Improve fidelity of OpenAI Responses server and add Conversations

* Merge

* nit

* Undo prior change

* Undo prior change

* Review feedback

* Review feedback

* Fix test

* Use simpler JsonDocument approach for polymorphic deserialization

* More review feedback

* dotnet format
This commit is contained in:
Reuben Bond
2025-11-05 18:46:19 +00:00
committed by GitHub
parent e2282ebe42
commit 33f84f9ed2
135 changed files with 11718 additions and 1243 deletions
@@ -22,6 +22,11 @@ internal static class Step7EntryPoint
AgentThread thread = agent.GetNewThread();
await foreach (AgentRunResponseUpdate update in agent.RunStreamingAsync(thread).ConfigureAwait(false))
{
if (update.RawRepresentation is WorkflowEvent)
{
// Skip workflow status updates
continue;
}
string updateText = $"{update.AuthorName
?? update.AgentId
?? update.Role.ToString()