Class ScatterGatherBuilder
-
- All Implemented Interfaces:
public final class ScatterGatherBuilder<ELEMENT extends Object, RESULT extends Object>Builder for creating a consensus workflow that generates results from multiple but need not use an LLM at all.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classScatterGatherBuilder.ElementBuilderpublic final classScatterGatherBuilder.Generatorspublic final classScatterGatherBuilder.Emitterpublic classScatterGatherBuilder.Companion
-
Field Summary
Fields Modifier and Type Field Description public final static IntegerDEFAULT_MAX_CONCURRENCYpublic final static ScatterGatherBuilder.CompanionCompanion
-
Method Summary
Modifier and Type Method Description final ScatterGatherBuilder.Generators<ELEMENT, RESULT>withGenerators(List<Function<out SupplierActionContext<ELEMENT>, ELEMENT>> generators)final ScatterGatherBuilder.Generators<ELEMENT, RESULT>generatedBy(List<Supplier<ELEMENT>> generators)static <RESULT extends Any> ScatterGatherBuilder.ElementBuilder<RESULT>returning(Class<RESULT> resultClass)-
-
Method Detail
-
withGenerators
final ScatterGatherBuilder.Generators<ELEMENT, RESULT> withGenerators(List<Function<out SupplierActionContext<ELEMENT>, ELEMENT>> generators)
-
generatedBy
final ScatterGatherBuilder.Generators<ELEMENT, RESULT> generatedBy(List<Supplier<ELEMENT>> generators)
-
-
-
-