Class JudgeScorer

java.lang.Object
dev.dokimos.server.judge.JudgeScorer

public final class JudgeScorer extends Object
Drives a single judge scoring: builds the prompt from a criteria and the selected parameters, calls the underlying JudgeLM, and parses the response. A failed parse yields a non-successful outcome with the failure reason rather than throwing; an HTTP failure propagates as a JudgeCallException so the worker can apply retry logic.
  • Constructor Details

  • Method Details

    • score

      public JudgeScorer.ScoreOutcome score(String input, String expectedOutput, String actualOutput)
      Scores one item.
      Parameters:
      input - the rendered input value
      expectedOutput - the rendered expected output value
      actualOutput - the rendered actual output value
      Returns:
      the score, reason, and pass/fail decision
      Throws:
      JudgeCallException - if the underlying judge call fails