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 Details

    • FailedEvaluation

      public FailedEvaluation(String traceId, String agentId, String evaluatorName, double score, String details, Evaluator.EvaluationInput input)
      Creates an instance of a FailedEvaluation record class.
      Parameters:
      traceId - the value for the traceId record component
      agentId - the value for the agentId record component
      evaluatorName - the value for the evaluatorName record component
      score - the value for the score record component
      details - the value for the details record component
      input - the value for the input record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • traceId

      public String traceId()
      Returns the value of the traceId record component.
      Returns:
      the value of the traceId record component
    • agentId

      public String agentId()
      Returns the value of the agentId record component.
      Returns:
      the value of the agentId record component
    • evaluatorName

      public String evaluatorName()
      Returns the value of the evaluatorName record component.
      Returns:
      the value of the evaluatorName record component
    • score

      public double score()
      Returns the value of the score record component.
      Returns:
      the value of the score record component
    • details

      public String details()
      Returns the value of the details record component.
      Returns:
      the value of the details record component
    • input

      public Evaluator.EvaluationInput input()
      Returns the value of the input record component.
      Returns:
      the value of the input record component