mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
fix filter logic
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user