Package com.tnsai.evaluation.bridge
Record Class TraceEvalBridge.FailedEvaluation
java.lang.Object
java.lang.Record
com.tnsai.evaluation.bridge.TraceEvalBridge.FailedEvaluation
- Enclosing class:
TraceEvalBridge
public static record TraceEvalBridge.FailedEvaluation(String traceId, String agentId, String evaluatorName, double score, String details, Evaluator.EvaluationInput input)
extends Record
Record of a failed evaluation for downstream processing (e.g., AutoHarness).
-
Constructor Summary
ConstructorsConstructorDescriptionFailedEvaluation(String traceId, String agentId, String evaluatorName, double score, String details, Evaluator.EvaluationInput input) Creates an instance of aFailedEvaluationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionagentId()Returns the value of theagentIdrecord component.details()Returns the value of thedetailsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theevaluatorNamerecord component.final inthashCode()Returns a hash code value for this object.input()Returns the value of theinputrecord component.doublescore()Returns the value of thescorerecord component.final StringtoString()Returns a string representation of this record class.traceId()Returns the value of thetraceIdrecord component.
-
Constructor Details
-
FailedEvaluation
public FailedEvaluation(String traceId, String agentId, String evaluatorName, double score, String details, Evaluator.EvaluationInput input) Creates an instance of aFailedEvaluationrecord class.- Parameters:
traceId- the value for thetraceIdrecord componentagentId- the value for theagentIdrecord componentevaluatorName- the value for theevaluatorNamerecord componentscore- the value for thescorerecord componentdetails- the value for thedetailsrecord componentinput- the value for theinputrecord component
-
-
Method Details
-
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 '=='. -
traceId
Returns the value of thetraceIdrecord component.- Returns:
- the value of the
traceIdrecord component
-
agentId
Returns the value of theagentIdrecord component.- Returns:
- the value of the
agentIdrecord component
-
evaluatorName
Returns the value of theevaluatorNamerecord component.- Returns:
- the value of the
evaluatorNamerecord component
-
score
public double score()Returns the value of thescorerecord component.- Returns:
- the value of the
scorerecord component
-
details
Returns the value of thedetailsrecord component.- Returns:
- the value of the
detailsrecord component
-
input
Returns the value of theinputrecord component.- Returns:
- the value of the
inputrecord component
-