From 69d39df22ee8dbc003bd2c560403ad6589774dd0 Mon Sep 17 00:00:00 2001 From: Jacob Alber Date: Thu, 28 May 2026 16:41:36 -0400 Subject: [PATCH] fix filter logic --- dotnet/src/Microsoft.Agents.AI.Workflows/OutputTag.cs | 2 +- dotnet/src/Microsoft.Agents.AI.Workflows/WorkflowSession.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows/OutputTag.cs b/dotnet/src/Microsoft.Agents.AI.Workflows/OutputTag.cs index 5e5f71c22f..073e2f995f 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows/OutputTag.cs +++ b/dotnet/src/Microsoft.Agents.AI.Workflows/OutputTag.cs @@ -16,7 +16,7 @@ namespace Microsoft.Agents.AI.Workflows; public readonly struct OutputTag : IEquatable { /// - /// The normalized string identifier of the tag. Compared with ordinal equality. + /// The string identifier of the tag. Compared with ordinal equality. /// public string? Value { get; } diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows/WorkflowSession.cs b/dotnet/src/Microsoft.Agents.AI.Workflows/WorkflowSession.cs index c597c83a78..0f828b8f8e 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows/WorkflowSession.cs +++ b/dotnet/src/Microsoft.Agents.AI.Workflows/WorkflowSession.cs @@ -524,8 +524,8 @@ internal sealed class WorkflowSession : AgentSession // AgentResponseUpdateEvent's behavior: always forward, regardless of the // _includeWorkflowOutputsInResponse host flag. Under the legacy default, // keep today's behavior — gated by the include flag. - if ((Futures.EnableAgentResponseOutputTaggingAndFiltering && !output.IsIntermediate() || - (!Futures.EnableAgentResponseOutputTaggingAndFiltering && !this._includeWorkflowOutputsInResponse))) + if ((Futures.EnableAgentResponseOutputTaggingAndFiltering && !agentResponse.IsIntermediate()) || + (!Futures.EnableAgentResponseOutputTaggingAndFiltering && !this._includeWorkflowOutputsInResponse)) { goto default; }