Record Class EvaluationRecord

Object
Record
akka.javasdk.ledger.EvaluationRecord
Record Components:
evaluationId - the globally unique id of the evaluation
evaluatorComponentId - the component id of the evaluator that ran the evaluation
controlId - the control id that the evaluator declares, or empty when it declares none
trigger - what caused the evaluation to run
interactionId - the id of the interaction that was evaluated
agentComponentId - the component id of the agent whose interaction was evaluated
outcome - the terminal outcome of the evaluation
timestamp - when the evaluation was recorded

public record EvaluationRecord(String evaluationId, String evaluatorComponentId, Optional<String> controlId, EvaluationRecord.Trigger trigger, String interactionId, String agentComponentId, EvaluationRecord.Outcome outcome, Instant timestamp) extends Record
The record of a single evaluation, as fetched from the ledger.

An evaluation is recorded when it terminates, so a fetched record always carries a terminal EvaluationRecord.Outcome: the verdict it reached, or why it did not reach one.

  • Constructor Details

  • Method Details

    • evaluation

      public Optional<Evaluation> evaluation()
      The verdict this evaluation reached, or empty for an inconclusive or failed evaluation.
    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • evaluationId

      public String evaluationId()
      Returns the value of the evaluationId record component.
      Returns:
      the value of the evaluationId record component
    • evaluatorComponentId

      public String evaluatorComponentId()
      Returns the value of the evaluatorComponentId record component.
      Returns:
      the value of the evaluatorComponentId record component
    • controlId

      public Optional<String> controlId()
      Returns the value of the controlId record component.
      Returns:
      the value of the controlId record component
    • trigger

      public EvaluationRecord.Trigger trigger()
      Returns the value of the trigger record component.
      Returns:
      the value of the trigger record component
    • interactionId

      public String interactionId()
      Returns the value of the interactionId record component.
      Returns:
      the value of the interactionId record component
    • agentComponentId

      public String agentComponentId()
      Returns the value of the agentComponentId record component.
      Returns:
      the value of the agentComponentId record component
    • outcome

      public EvaluationRecord.Outcome outcome()
      Returns the value of the outcome record component.
      Returns:
      the value of the outcome record component
    • timestamp

      public Instant timestamp()
      Returns the value of the timestamp record component.
      Returns:
      the value of the timestamp record component