Interface ExperimentCaseResult.Builder

  • Method Details

    • caseId

      The ID of the dataset case. Each case can appear at most once in a request.

      Parameters:
      caseId - The ID of the dataset case. Each case can appear at most once in a request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sessionId

      ExperimentCaseResult.Builder sessionId(String sessionId)

      The ID of the session in which the target ran the case.

      Parameters:
      sessionId - The ID of the session in which the target ran the case.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • executionStatus

      ExperimentCaseResult.Builder executionStatus(String executionStatus)

      The outcome of running the case against the target, before scoring.

      Parameters:
      executionStatus - The outcome of running the case against the target, before scoring.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • executionStatus

      ExperimentCaseResult.Builder executionStatus(CaseExecutionStatus executionStatus)

      The outcome of running the case against the target, before scoring.

      Parameters:
      executionStatus - The outcome of running the case against the target, before scoring.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • statusReason

      ExperimentCaseResult.Builder statusReason(String statusReason)

      The reason for the execution status. Required when executionStatus is TARGET_ERROR or TIMED_OUT, optional for NOT_RUN, and absent for COMPLETED.

      Parameters:
      statusReason - The reason for the execution status. Required when executionStatus is TARGET_ERROR or TIMED_OUT, optional for NOT_RUN, and absent for COMPLETED.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • statusReason

      ExperimentCaseResult.Builder statusReason(CaseStatusReason statusReason)

      The reason for the execution status. Required when executionStatus is TARGET_ERROR or TIMED_OUT, optional for NOT_RUN, and absent for COMPLETED.

      Parameters:
      statusReason - The reason for the execution status. Required when executionStatus is TARGET_ERROR or TIMED_OUT, optional for NOT_RUN, and absent for COMPLETED.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • turns

      The turns of the case, up to 50, in the order they ran.

      Parameters:
      turns - The turns of the case, up to 50, in the order they ran.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • turns

      The turns of the case, up to 50, in the order they ran.

      Parameters:
      turns - The turns of the case, up to 50, in the order they ran.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • turns

      The turns of the case, up to 50, in the order they ran.

      This is a convenience method that creates an instance of the CaseTurn.Builder avoiding the need to create one manually via CaseTurn.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to turns(List<CaseTurn>).

      Parameters:
      turns - a consumer that will call methods on CaseTurn.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • evaluators

      The evaluator results for the case, up to 20. Each entry refers to one of the run's evaluators.

      Parameters:
      evaluators - The evaluator results for the case, up to 20. Each entry refers to one of the run's evaluators.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • evaluators

      The evaluator results for the case, up to 20. Each entry refers to one of the run's evaluators.

      Parameters:
      evaluators - The evaluator results for the case, up to 20. Each entry refers to one of the run's evaluators.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • evaluators

      The evaluator results for the case, up to 20. Each entry refers to one of the run's evaluators.

      This is a convenience method that creates an instance of the CaseEvaluatorResult.Builder avoiding the need to create one manually via CaseEvaluatorResult.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to evaluators(List<CaseEvaluatorResult>).

      Parameters:
      evaluators - a consumer that will call methods on CaseEvaluatorResult.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: