SequentialWorkflowBuilder.WithChainOnlyAgentResponses(Boolean) Method

Definition

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.

Applies to