ConsensusBuilder

class ConsensusBuilder<RESULT : Any>(resultClass: Class<RESULT>, maxConcurrency: Int = DEFAULT_MAX_CONCURRENCY)

Builder for creating a consensus workflow that generates results from multiple generators Generators and consensus function are typically used in multi-model scenarios, but need not use an LLM at all.

Constructors

Link copied to clipboard
constructor(resultClass: Class<RESULT>, maxConcurrency: Int = DEFAULT_MAX_CONCURRENCY)

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inner class Generators(generators: List<Function<out SupplierActionContext<RESULT>, RESULT>>)

Functions