SequentialWorkflowBuilder.WithChainOnlyAgentResponses(Boolean) 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.
Configures whether each downstream agent should receive only the previous agent's output, instead of the full accumulated conversation.
public Microsoft.Agents.AI.Workflows.SequentialWorkflowBuilder WithChainOnlyAgentResponses(bool enabled = true);
member this.WithChainOnlyAgentResponses : bool -> Microsoft.Agents.AI.Workflows.SequentialWorkflowBuilder
Public Function WithChainOnlyAgentResponses (Optional enabled As Boolean = true) As SequentialWorkflowBuilder
Parameters
- enabled
- Boolean
true to pass only the previous agent's output messages to the next agent;
false to pass the full conversation context.
When enabled, the workflow's terminal output also contains only the final agent's
messages, because incoming messages are no longer forwarded to the terminal
Microsoft.Agents.AI.Workflows.OutputMessagesExecutor.
Returns
The builder instance.