WorkflowBuilderExtensions.WithIntermediateOutputFrom Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Register executors as a source of intermediate workflow outputs. The resulting
WorkflowOutputEvents carry Intermediate in their
Tags set, and
IsIntermediate(WorkflowOutputEvent) returns
true. Use this for progress updates, partial results, and other
non-terminal emissions that downstream consumers (DevUI, logging, Workflow-as-Agent
surfaces) should see distinctly from the workflow's final output.
public static Microsoft.Agents.AI.Workflows.WorkflowBuilder WithIntermediateOutputFrom(this Microsoft.Agents.AI.Workflows.WorkflowBuilder builder, System.Collections.Generic.IEnumerable<Microsoft.Agents.AI.Workflows.ExecutorBinding> executors);
static member WithIntermediateOutputFrom : Microsoft.Agents.AI.Workflows.WorkflowBuilder * seq<Microsoft.Agents.AI.Workflows.ExecutorBinding> -> Microsoft.Agents.AI.Workflows.WorkflowBuilder
<Extension()>
Public Function WithIntermediateOutputFrom (builder As WorkflowBuilder, executors As IEnumerable(Of ExecutorBinding)) As WorkflowBuilder
Parameters
- builder
- WorkflowBuilder
The workflow builder to register executors on.
- executors
- IEnumerable<ExecutorBinding>
The executors to register as intermediate output sources.
Returns
The builder, enabling fluent configuration.
Remarks
AIAgent payloads (AgentResponse / AgentResponseUpdate) only participate in this designation when EnableAgentResponseOutputTaggingAndFiltering is true; otherwise they bypass the filter and are emitted untagged.