Method WithAggregator
- Namespace
- LMKit.Agents.Orchestration
- Assembly
- LM-Kit.NET.dll
WithAggregator(Func<IReadOnlyList<AgentExecutionResult>, OrchestrationContext, string>)
Sets the aggregation function for combining results.
public ParallelOrchestrator WithAggregator(Func<IReadOnlyList<AgentExecutionResult>, OrchestrationContext, string> aggregator)
Parameters
aggregatorFunc<IReadOnlyList<AgentExecutionResult>, OrchestrationContext, string>Function that takes all successful results and the context, and returns the combined output.
Returns
- ParallelOrchestrator
This orchestrator for method chaining.