AgentWorkflowBuilder.BuildSequential 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.
Overloads
| Name | Description |
|---|---|
| BuildSequential(IEnumerable<AIAgent>) |
Builds a Workflow composed of a pipeline of agents where the output of one agent is the input to the next. |
| BuildSequential(Boolean, IEnumerable<AIAgent>) |
Builds a Workflow composed of a pipeline of agents where the output of one agent is the input to the next. |
| BuildSequential(String, IEnumerable<AIAgent>) |
Builds a Workflow composed of a pipeline of agents where the output of one agent is the input to the next. |
| BuildSequential(String, Boolean, IEnumerable<AIAgent>) |
Builds a Workflow composed of a pipeline of agents where the output of one agent is the input to the next. |
BuildSequential(IEnumerable<AIAgent>)
Builds a Workflow composed of a pipeline of agents where the output of one agent is the input to the next.
public static Microsoft.Agents.AI.Workflows.Workflow BuildSequential(System.Collections.Generic.IEnumerable<Microsoft.Agents.AI.AIAgent> agents);
static member BuildSequential : seq<Microsoft.Agents.AI.AIAgent> -> Microsoft.Agents.AI.Workflows.Workflow
Public Shared Function BuildSequential (agents As IEnumerable(Of AIAgent)) As Workflow
Parameters
- agents
- IEnumerable<AIAgent>
The sequence of agents to compose into a sequential workflow.
Returns
The built workflow composed of the supplied agents, in the order in which they were yielded from the source.
Applies to
BuildSequential(Boolean, IEnumerable<AIAgent>)
Builds a Workflow composed of a pipeline of agents where the output of one agent is the input to the next.
public static Microsoft.Agents.AI.Workflows.Workflow BuildSequential(bool chainOnlyAgentResponses, System.Collections.Generic.IEnumerable<Microsoft.Agents.AI.AIAgent> agents);
static member BuildSequential : bool * seq<Microsoft.Agents.AI.AIAgent> -> Microsoft.Agents.AI.Workflows.Workflow
Public Shared Function BuildSequential (chainOnlyAgentResponses As Boolean, agents As IEnumerable(Of AIAgent)) As Workflow
Parameters
- chainOnlyAgentResponses
- Boolean
true to pass only each agent's output messages to the next agent in the sequence;
false to pass the full accumulated conversation.
When enabled, the workflow output also reflects only the final agent's messages,
because the sequential builder stops forwarding the incoming messages to the
terminal output executor.
- agents
- IEnumerable<AIAgent>
The sequence of agents to compose into a sequential workflow.
Returns
The built workflow composed of the supplied agents, in the order in which they were yielded from the source.
Applies to
BuildSequential(String, IEnumerable<AIAgent>)
Builds a Workflow composed of a pipeline of agents where the output of one agent is the input to the next.
public static Microsoft.Agents.AI.Workflows.Workflow BuildSequential(string workflowName, System.Collections.Generic.IEnumerable<Microsoft.Agents.AI.AIAgent> agents);
static member BuildSequential : string * seq<Microsoft.Agents.AI.AIAgent> -> Microsoft.Agents.AI.Workflows.Workflow
Public Shared Function BuildSequential (workflowName As String, agents As IEnumerable(Of AIAgent)) As Workflow
Parameters
- workflowName
- String
The name of workflow.
- agents
- IEnumerable<AIAgent>
The sequence of agents to compose into a sequential workflow.
Returns
The built workflow composed of the supplied agents, in the order in which they were yielded from the source.
Applies to
BuildSequential(String, Boolean, IEnumerable<AIAgent>)
Builds a Workflow composed of a pipeline of agents where the output of one agent is the input to the next.
public static Microsoft.Agents.AI.Workflows.Workflow BuildSequential(string workflowName, bool chainOnlyAgentResponses, System.Collections.Generic.IEnumerable<Microsoft.Agents.AI.AIAgent> agents);
static member BuildSequential : string * bool * seq<Microsoft.Agents.AI.AIAgent> -> Microsoft.Agents.AI.Workflows.Workflow
Public Shared Function BuildSequential (workflowName As String, chainOnlyAgentResponses As Boolean, agents As IEnumerable(Of AIAgent)) As Workflow
Parameters
- workflowName
- String
The name of workflow.
- chainOnlyAgentResponses
- Boolean
true to pass only each agent's output messages to the next agent in the sequence;
false to pass the full accumulated conversation.
When enabled, the workflow output also reflects only the final agent's messages,
because the sequential builder stops forwarding the incoming messages to the
terminal output executor.
- agents
- IEnumerable<AIAgent>
The sequence of agents to compose into a sequential workflow.
Returns
The built workflow composed of the supplied agents, in the order in which they were yielded from the source.