类 SequentialPipeline
java.lang.Object
io.agentscope.core.pipeline.SequentialPipeline
Sequential pipeline implementation for agent orchestration.
This pipeline executes agents in sequence, where each agent's output becomes
the input for the next agent.
Execution flow:
Input -> Agent1 -> Agent2 -> ... -> AgentN -> Output
Features:
- Chain pattern execution
- State propagation through the pipeline
- Error handling and recovery
- Support for empty agent lists
-
嵌套类概要
嵌套类修饰符和类型类说明static classBuilder for creating sequential pipelines with fluent API. -
构造器概要
构造器构造器说明SequentialPipeline(List<AgentBase> agents) Create a sequential pipeline with the specified agents. -
方法概要
修饰符和类型方法说明static SequentialPipeline.Builderbuilder()Create a builder for constructing sequential pipelines.reactor.core.publisher.Mono<Msg> Execute the pipeline with the given input message.reactor.core.publisher.Mono<Msg> Execute the pipeline with the given input message and structured output.Get the list of agents in this pipeline.Get a description of this pipeline.booleanisEmpty()Check if this pipeline is empty (has no agents).intsize()Get the number of agents in this pipeline.toString()
-
构造器详细资料
-
SequentialPipeline
Create a sequential pipeline with the specified agents.- 参数:
agents- List of agents to execute in sequence
-
-
方法详细资料
-
execute
从接口复制的说明:PipelineExecute the pipeline with the given input message. -
execute
从接口复制的说明:PipelineExecute the pipeline with the given input message and structured output. -
getAgents
Get the list of agents in this pipeline.- 返回:
- Copy of the agents list
-
size
public int size()Get the number of agents in this pipeline.- 返回:
- Number of agents
-
isEmpty
public boolean isEmpty()Check if this pipeline is empty (has no agents).- 返回:
- True if pipeline has no agents
-
getDescription
从接口复制的说明:PipelineGet a description of this pipeline.- 指定者:
getDescription在接口中Pipeline<Msg>- 返回:
- Human-readable description of the pipeline
-
toString
-
builder
Create a builder for constructing sequential pipelines.- 返回:
- New pipeline builder
-