mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
Fix intermediate filtering on .AsAgent()
This commit is contained in:
@@ -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 &&
|
||||
!this._includeWorkflowOutputsInResponse)
|
||||
if ((Futures.EnableAgentResponseOutputTaggingAndFiltering && !output.IsIntermediate() ||
|
||||
(!Futures.EnableAgentResponseOutputTaggingAndFiltering && !this._includeWorkflowOutputsInResponse)))
|
||||
{
|
||||
goto default;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user