Class ParallelAgent.ParallelAgentBuilder

java.lang.Object
com.alibaba.cloud.ai.graph.agent.flow.builder.FlowAgentBuilder<ParallelAgent,ParallelAgent.ParallelAgentBuilder>
com.alibaba.cloud.ai.graph.agent.flow.agent.ParallelAgent.ParallelAgentBuilder
Enclosing class:
ParallelAgent

public static class ParallelAgent.ParallelAgentBuilder extends FlowAgentBuilder<ParallelAgent,ParallelAgent.ParallelAgentBuilder>
Builder for creating ParallelAgent instances. Extends the common FlowAgentBuilder to provide type-safe building with parallel execution capabilities.

Usage example:


 ParallelAgent parallelAgent = ParallelAgent.builder()
 		.name("parallel_workflow")
 		.description("Executes multiple tasks in parallel")
 		.inputKey("input")
 		.outputKey("output")
 		.mergeStrategy(new ParallelAgent.ListMergeStrategy())
 		.maxConcurrency(5)
 		.subAgents(List.of(agent1, agent2, agent3))
 		.build();