Class Score

java.lang.Object
com.google.genkit.ai.evaluation.Score

public class Score extends Object
Score represents the result of an evaluation.

A score can contain a numeric value, a string value, or a boolean value, along with an optional status and detailed information about the evaluation.

  • Constructor Details

    • Score

      public Score()
  • Method Details

    • builder

      public static Score.Builder builder()
    • getId

      public String getId()
    • setId

      public void setId(String id)
    • getScore

      public Object getScore()
    • setScore

      public void setScore(Object score)
    • getScoreAsDouble

      public Double getScoreAsDouble()
    • getScoreAsString

      public String getScoreAsString()
    • getScoreAsBoolean

      public Boolean getScoreAsBoolean()
    • getStatus

      public EvalStatus getStatus()
    • setStatus

      public void setStatus(EvalStatus status)
    • getError

      public String getError()
    • setError

      public void setError(String error)
    • getDetails

      public ScoreDetails getDetails()
    • setDetails

      public void setDetails(ScoreDetails details)