Class ParallelValidationExecutor.Builder
java.lang.Object
com.tnsai.quality.validation.parallel.ParallelValidationExecutor.Builder
- Enclosing class:
ParallelValidationExecutor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAgent(com.tnsai.agents.Agent agent) Adds an agent to the validation pool.addLLM(com.tnsai.llm.LLMClient llm) Adds an LLM client to the validation pool.Adds multiple agents to the validation pool.aggregationStrategy(AggregationStrategy strategy) Sets the aggregation strategy.build()Adds multiple LLM clients to the validation pool.similarityThreshold(double threshold) Sets the similarity threshold for comparing responses (0.0 to 1.0).synthesisLLM(com.tnsai.llm.LLMClient llm) Sets the LLM client to use for synthesis (required for CONSENSUS and ENSEMBLE).Sets the timeout for parallel execution.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
addAgent
Adds an agent to the validation pool. -
agents
Adds multiple agents to the validation pool. -
addLLM
Adds an LLM client to the validation pool. -
llms
Adds multiple LLM clients to the validation pool. -
aggregationStrategy
Sets the aggregation strategy. -
timeout
Sets the timeout for parallel execution. -
synthesisLLM
Sets the LLM client to use for synthesis (required for CONSENSUS and ENSEMBLE). -
similarityThreshold
Sets the similarity threshold for comparing responses (0.0 to 1.0). -
build
-