ConcurrentWorkflowBuilder.WithAggregator Method

Definition

Sets the aggregator function. If not called, defaults to returning the last message from each agent that produced at least one message.

public Microsoft.Agents.AI.Workflows.ConcurrentWorkflowBuilder WithAggregator(Func<System.Collections.Generic.IList<System.Collections.Generic.List<Microsoft.Extensions.AI.ChatMessage>>,System.Collections.Generic.List<Microsoft.Extensions.AI.ChatMessage>> aggregator);
member this.WithAggregator : Func<System.Collections.Generic.IList<System.Collections.Generic.List<Microsoft.Extensions.AI.ChatMessage>>, System.Collections.Generic.List<Microsoft.Extensions.AI.ChatMessage>> -> Microsoft.Agents.AI.Workflows.ConcurrentWorkflowBuilder
Public Function WithAggregator (aggregator As Func(Of IList(Of List(Of ChatMessage)), List(Of ChatMessage))) As ConcurrentWorkflowBuilder

Parameters

Returns

Applies to