Skip to content

Commit 32458b4

Browse files
committed
Fix test
1 parent 0f97e8f commit 32458b4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

dotnet/tests/Microsoft.Agents.AI.Workflows.UnitTests/Sample/07_GroupChat_Workflow_HostAsAgent.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ public static async ValueTask RunAsync(TextWriter writer, int maxSteps = 2)
1818

1919
await foreach (AgentRunResponseUpdate update in agent.RunStreamingAsync(thread).ConfigureAwait(false))
2020
{
21+
if (update.RawRepresentation is WorkflowEvent)
22+
{
23+
// Skip workflow status updates
24+
continue;
25+
}
26+
2127
string updateText = $"{update.AuthorName
2228
?? update.AgentId
2329
?? update.Role.ToString()

0 commit comments

Comments
 (0)