Class Example.Builder

java.lang.Object
com.judgmentlabs.judgeval.data.Example.Builder
Enclosing class:
Example

public static final class Example.Builder extends Object
Builder for configuring and creating Example instances.
  • Method Details

    • property

      public Example.Builder property(String key, Object value)
      Sets a custom property on the example.
      Parameters:
      key - the property key
      value - the property value
      Returns:
      this builder
    • name

      public Example.Builder name(String name)
      Sets the name of the example.
      Parameters:
      name - the example name
      Returns:
      this builder
    • build

      public Example build()
      Builds and returns the configured Example.
      Returns:
      the configured Example