Package com.tnsai.coordination.council
Record Class CouncilResponse
java.lang.Object
java.lang.Record
com.tnsai.coordination.council.CouncilResponse
- Record Components:
llmName- the model name of the responding LLMresponse- the response text (null if the LLM failed)durationMs- time taken in milliseconds
Individual response from a council member (Stage 1).
- Since:
- 0.0.5
-
Constructor Summary
ConstructorsConstructorDescriptionCouncilResponse(String llmName, String response, long durationMs) Creates an instance of aCouncilResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thedurationMsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns true if this response was successful.llmName()Returns the value of thellmNamerecord component.response()Returns the value of theresponserecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CouncilResponse
Creates an instance of aCouncilResponserecord class.- Parameters:
llmName- the value for thellmNamerecord componentresponse- the value for theresponserecord componentdurationMs- the value for thedurationMsrecord component
-
-
Method Details
-
isSuccess
public boolean isSuccess()Returns true if this response was successful. -
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 '=='. -
llmName
Returns the value of thellmNamerecord component.- Returns:
- the value of the
llmNamerecord component
-
response
Returns the value of theresponserecord component.- Returns:
- the value of the
responserecord component
-
durationMs
public long durationMs()Returns the value of thedurationMsrecord component.- Returns:
- the value of the
durationMsrecord component
-