Package com.tnsai.llm
Record Class ParallelLLM.ParallelResults
java.lang.Object
java.lang.Record
com.tnsai.llm.ParallelLLM.ParallelResults
- Enclosing class:
ParallelLLM
public static record ParallelLLM.ParallelResults(List<ParallelLLM.LLMResult> results, long totalDurationMs)
extends Record
Aggregated results from multiple LLMs.
-
Constructor Summary
ConstructorsConstructorDescriptionParallelResults(List<ParallelLLM.LLMResult> results, long totalDurationMs) Creates an instance of aParallelResultsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.failed()fastest()final inthashCode()Returns a hash code value for this object.results()Returns the value of theresultsrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalDurationMsrecord component.
-
Constructor Details
-
ParallelResults
Creates an instance of aParallelResultsrecord class.- Parameters:
results- the value for theresultsrecord componenttotalDurationMs- the value for thetotalDurationMsrecord component
-
-
Method Details
-
successful
-
failed
-
responses
-
fastest
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
results
Returns the value of theresultsrecord component.- Returns:
- the value of the
resultsrecord component
-
totalDurationMs
public long totalDurationMs()Returns the value of thetotalDurationMsrecord component.- Returns:
- the value of the
totalDurationMsrecord component
-