Record Class EvalCase<INPUT,OUTPUT>

java.lang.Object
java.lang.Record
dev.braintrust.eval.EvalCase<INPUT,OUTPUT>

@Deprecated public record EvalCase<INPUT,OUTPUT>(INPUT input, OUTPUT expected, @Nonnull List<String> tags, @Nonnull Map<String,Object> metadata) extends Record
Deprecated.
Deprecated. Use DatasetCase instead
  • Constructor Summary

    Constructors
    Constructor
    Description
    EvalCase(INPUT input, OUTPUT expected, List<String> tags, Map<String,Object> metadata)
    Deprecated.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Deprecated.
    Indicates whether some other object is "equal to" this one.
    Deprecated.
    Returns the value of the expected record component.
    final int
    Deprecated.
    Returns a hash code value for this object.
    Deprecated.
    Returns the value of the input record component.
    Deprecated.
    Returns the value of the metadata record component.
    static <INPUT, OUTPUT>
    EvalCase<INPUT,OUTPUT>
    of(INPUT input, OUTPUT expected)
    Deprecated.
    static <INPUT, OUTPUT>
    EvalCase<INPUT,OUTPUT>
    of(INPUT input, OUTPUT expected, List<String> tags, Map<String,Object> metadata)
    Deprecated.
    Deprecated.
    Returns the value of the tags record component.
    final String
    Deprecated.
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • Method Details

    • of

      @Deprecated public static <INPUT, OUTPUT> EvalCase<INPUT,OUTPUT> of(INPUT input, OUTPUT expected)
      Deprecated.
      Deprecated. Use DatasetCase instead
    • of

      @Deprecated public static <INPUT, OUTPUT> EvalCase<INPUT,OUTPUT> of(INPUT input, OUTPUT expected, @Nonnull List<String> tags, @Nonnull Map<String,Object> metadata)
      Deprecated.
      Deprecated. Use DatasetCase instead
    • toString

      public final String toString()
      Deprecated.
      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()
      Deprecated.
      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)
      Deprecated.
      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.
    • input

      public INPUT input()
      Deprecated.
      Returns the value of the input record component.
      Returns:
      the value of the input record component
    • expected

      public OUTPUT expected()
      Deprecated.
      Returns the value of the expected record component.
      Returns:
      the value of the expected record component
    • tags

      @Nonnull public List<String> tags()
      Deprecated.
      Returns the value of the tags record component.
      Returns:
      the value of the tags record component
    • metadata

      @Nonnull public Map<String,Object> metadata()
      Deprecated.
      Returns the value of the metadata record component.
      Returns:
      the value of the metadata record component