接口 Pipeline<T>
- 类型参数:
T- Type of the pipeline result
- 所有已知实现类:
FanoutPipeline,SequentialPipeline
public interface Pipeline<T>
Base interface for pipeline execution in AgentScope.
Pipelines provide orchestration of agents and operations in various patterns
such as sequential, parallel (fanout), or custom flows.
-
方法概要
修饰符和类型方法说明default reactor.core.publisher.Mono<T> execute()Execute the pipeline with no input (for pipelines that don't need input).reactor.core.publisher.Mono<T> Execute the pipeline with the given input message.reactor.core.publisher.Mono<T> Execute the pipeline with the given input message and structured output.default reactor.core.publisher.Mono<T> Execute the pipeline with no input but with structured output.default StringGet a description of this pipeline.
-
方法详细资料
-
execute
Execute the pipeline with the given input message.- 参数:
input- Input message to process through the pipeline- 返回:
- Mono containing the pipeline result
-
execute
Execute the pipeline with the given input message and structured output.- 参数:
input- Input message to process through the pipelinestructuredOutputClass- The class type for structured output- 返回:
- Mono containing the pipeline result with structured output
-
execute
Execute the pipeline with no input (for pipelines that don't need input).- 返回:
- Mono containing the pipeline result
-
execute
Execute the pipeline with no input but with structured output.- 参数:
structuredOutputClass- The class type for structured output- 返回:
- Mono containing the pipeline result with structured output
-
getDescription
Get a description of this pipeline.- 返回:
- Human-readable description of the pipeline
-