类 FanoutPipeline.Builder
java.lang.Object
io.agentscope.core.pipeline.FanoutPipeline.Builder
- 封闭类:
FanoutPipeline
Builder for creating fanout pipelines with fluent API.
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Add an agent to the pipeline.Add multiple agents to the pipeline.build()Build the fanout pipeline.Enable concurrent execution (default).concurrent(boolean concurrent) Set whether to enable concurrent execution.scheduler(reactor.core.scheduler.Scheduler scheduler) Enable sequential execution.
-
构造器详细资料
-
Builder
public Builder()
-
-
方法详细资料
-
addAgent
Add an agent to the pipeline.- 参数:
agent- Agent to add- 返回:
- This builder for method chaining
-
addAgents
Add multiple agents to the pipeline.- 参数:
agentList- List of agents to add- 返回:
- This builder for method chaining
-
concurrent
Set whether to enable concurrent execution.- 参数:
concurrent- True for concurrent execution, false for sequential- 返回:
- This builder for method chaining
-
scheduler
- 参数:
scheduler-- 返回:
-
concurrent
Enable concurrent execution (default).- 返回:
- This builder for method chaining
-
sequential
Enable sequential execution.- 返回:
- This builder for method chaining
-
build
Build the fanout pipeline.- 返回:
- Configured fanout pipeline
-