Interface ExampleRun


public interface ExampleRun
Represents a single example run for summary evaluators..
  • Method Summary

    Modifier and Type
    Method
    Description
    static ExampleRun
    create(Object input, Object referenceOutput, Object output)
    Creates a new example run with the specified input, reference output, and actual output.
    <T> T
    Gets the input data for this example run.
    <T> T
    Gets the actual output for this example run.
    <T> T
    Gets the reference output for this example run.
  • Method Details

    • create

      static ExampleRun create(Object input, Object referenceOutput, Object output)
      Creates a new example run with the specified input, reference output, and actual output.
      Parameters:
      input - the input data for the example
      referenceOutput - the expected/reference output
      output - the actual output from the agent
      Returns:
      the example run instance
    • getInput

      <T> T getInput()
      Gets the input data for this example run.
      Type Parameters:
      T - the type of the input data
      Returns:
      the input data
    • getReferenceOutput

      <T> T getReferenceOutput()
      Gets the reference output for this example run.
      Type Parameters:
      T - the type of the reference output
      Returns:
      the reference output
    • getOutput

      <T> T getOutput()
      Gets the actual output for this example run.
      Type Parameters:
      T - the type of the actual output
      Returns:
      the actual output