fix filter logic

This commit is contained in:
Jacob Alber
2026-05-28 16:41:36 -04:00
Unverified
parent 74d0434a91
commit 69d39df22e
2 changed files with 3 additions and 3 deletions
@@ -16,7 +16,7 @@ namespace Microsoft.Agents.AI.Workflows;
public readonly struct OutputTag : IEquatable<OutputTag>
{
/// <summary>
/// The normalized string identifier of the tag. Compared with ordinal equality.
/// The string identifier of the tag. Compared with ordinal equality.
/// </summary>
public string? Value { get; }
@@ -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;
}