SequentialWorkflowBuilder Class
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.
Fluent builder for sequential agent workflows: a pipeline where the output of one agent is the input to the next, terminating in an aggregator that yields the accumulated ChatMessages as the workflow output.
public sealed class SequentialWorkflowBuilder : Microsoft.Agents.AI.Workflows.OrchestrationBuilderBase<Microsoft.Agents.AI.Workflows.SequentialWorkflowBuilder>
type SequentialWorkflowBuilder = class
inherit OrchestrationBuilderBase<SequentialWorkflowBuilder>
Public NotInheritable Class SequentialWorkflowBuilder
Inherits OrchestrationBuilderBase(Of SequentialWorkflowBuilder)
- Inheritance
Remarks
When no explicit output designations are made, the default is the Python-aligned shape: the terminal aggregator is the workflow output, and every participating agent is designated as an intermediate output source. Calling WithOutputFrom(IEnumerable<AIAgent>) or WithIntermediateOutputFrom(IEnumerable<AIAgent>) at all suppresses these defaults.
Constructors
| Name | Description |
|---|---|
| SequentialWorkflowBuilder(IEnumerable<AIAgent>) |
Initializes a new SequentialWorkflowBuilder with the given pipeline
of |
Properties
| Name | Description |
|---|---|
| Description |
Optional workflow description; applied to the inner WorkflowBuilder at |
| Name |
Optional workflow name; applied to the inner WorkflowBuilder at |
| OutputDesignations |
Memoized output designations. |
Methods
| Name | Description |
|---|---|
| ApplyMetadata(WorkflowBuilder) |
Applies the optional Name and Description to |
| ApplyOutputDesignations(WorkflowBuilder, IReadOnlyDictionary<AIAgent,ExecutorBinding>, String, Action) |
Applies the user's memoized output designations to |
| Build() |
Builds the configured sequential workflow. |
| WithChainOnlyAgentResponses(Boolean) |
Configures whether each downstream agent should receive only the previous agent's output, instead of the full accumulated conversation. |
| WithDescription(String) |
Sets the description for the workflow. (Inherited from OrchestrationBuilderBase<TBuilder>) |
| WithIntermediateOutputFrom(IEnumerable<AIAgent>) |
Designates the given |
| WithName(String) |
Sets the human-readable name for the workflow. (Inherited from OrchestrationBuilderBase<TBuilder>) |
| WithOutputFrom(IEnumerable<AIAgent>) |
Designates the given |