Uses of Record Class
com.tnsai.llm.ParallelLLM.LLMResult
Packages that use ParallelLLM.LLMResult
Package
Description
Multi-LLM ensemble execution with parallel fan-out, race patterns, and consensus voting.
LLM (Large Language Model) client interfaces and abstractions.
-
Uses of ParallelLLM.LLMResult in com.tnsai.agents.ensemble
Methods in com.tnsai.agents.ensemble that return types with arguments of type ParallelLLM.LLMResultModifier and TypeMethodDescriptionAgentEnsembleExecutor.consensusChat(String message, List<LLMClient> llms, Function<String, Double> scorer) Sends message to multiple LLMs and selects the best response using a scoring function.AgentEnsembleExecutor.majorityVoteChat(String message, List<LLMClient> llms) Sends message to multiple LLMs and selects by majority voting.Sends message to multiple LLMs and returns the first successful response. -
Uses of ParallelLLM.LLMResult in com.tnsai.llm
Methods in com.tnsai.llm that return ParallelLLM.LLMResultMethods in com.tnsai.llm that return types with arguments of type ParallelLLM.LLMResultModifier and TypeMethodDescriptionstatic Optional<ParallelLLM.LLMResult> Gets responses from multiple LLMs and selects the best one using a scoring function.ParallelLLM.ParallelResults.failed()ParallelLLM.ParallelResults.fastest()static Optional<ParallelLLM.LLMResult> ParallelLLM.majorityVote(String prompt, List<LLMClient> llms) Gets responses from multiple LLMs and selects by majority voting.static Optional<ParallelLLM.LLMResult> Sends prompt to multiple LLMs, returns the first successful response.ParallelLLM.ParallelResults.results()Returns the value of theresultsrecord component.ParallelLLM.ParallelResults.successful()Constructor parameters in com.tnsai.llm with type arguments of type ParallelLLM.LLMResultModifierConstructorDescriptionParallelResults(List<ParallelLLM.LLMResult> results, long totalDurationMs) Creates an instance of aParallelResultsrecord class.