ConcurrentWorkflowBuilder.WithAggregator 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.
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
- aggregator
- Func<IList<List<ChatMessage>>,List<ChatMessage>>