Interface CriteriaCheck


public interface CriteriaCheck
Interface for criteria checks in the refinement loop.

A criteria check evaluates an output and determines if it meets a specific quality requirement.

  • Method Summary

    Modifier and Type
    Method
    Description
    com.tnsai.refinement.CheckResult
    evaluate(String output)
    Evaluates the output against this criterion.
    default String
    Gets a description of what this check validates.
    Gets the name of this check.
    default boolean
    Returns true if this check is required (vs. nice-to-have).
  • Method Details

    • getName

      String getName()
      Gets the name of this check.
    • evaluate

      com.tnsai.refinement.CheckResult evaluate(String output)
      Evaluates the output against this criterion.
      Parameters:
      output - The output to evaluate
      Returns:
      The check result
    • isRequired

      default boolean isRequired()
      Returns true if this check is required (vs. nice-to-have).
    • getDescription

      default String getDescription()
      Gets a description of what this check validates.