Class EvaluationConfig

    • Method Detail

      • automated

        public final AutomatedEvaluationConfig automated()

        Contains the configuration details of an automated evaluation job that computes metrics.

        Returns:
        Contains the configuration details of an automated evaluation job that computes metrics.
      • human

        public final HumanEvaluationConfig human()

        Contains the configuration details of an evaluation job that uses human workers.

        Returns:
        Contains the configuration details of an evaluation job that uses human workers.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)
      • fromAutomated

        public static EvaluationConfig fromAutomated​(AutomatedEvaluationConfig automated)
        Create an instance of this class with automated() initialized to the given value.

        Contains the configuration details of an automated evaluation job that computes metrics.

        Parameters:
        automated - Contains the configuration details of an automated evaluation job that computes metrics.
      • fromAutomated

        public static EvaluationConfig fromAutomated​(Consumer<AutomatedEvaluationConfig.Builder> automated)
        Create an instance of this class with automated() initialized to the given value.

        Contains the configuration details of an automated evaluation job that computes metrics.

        Parameters:
        automated - Contains the configuration details of an automated evaluation job that computes metrics.
      • fromHuman

        public static EvaluationConfig fromHuman​(HumanEvaluationConfig human)
        Create an instance of this class with human() initialized to the given value.

        Contains the configuration details of an evaluation job that uses human workers.

        Parameters:
        human - Contains the configuration details of an evaluation job that uses human workers.
      • fromHuman

        public static EvaluationConfig fromHuman​(Consumer<HumanEvaluationConfig.Builder> human)
        Create an instance of this class with human() initialized to the given value.

        Contains the configuration details of an evaluation job that uses human workers.

        Parameters:
        human - Contains the configuration details of an evaluation job that uses human workers.