Skip to content
  • Auto
  • Light
  • Dark

Create

Create Evaluation Test Case.
agents.evaluation_test_cases.create(EvaluationTestCaseCreateParams**kwargs) -> test_case_uuidstrEvaluationTestCaseCreateResponse
post/v2/gen-ai/evaluation_test_cases

To create an evaluation test-case send a POST request to /v2/gen-ai/evaluation_test_cases.

Parameters
dataset_uuidstr
optional

Dataset against which the test‑case is executed.

descriptionstr
optional

Description of the test case.

metricslist
optional
List[str]

Full metric list to use for evaluation test case.

namestr
optional

Name of the test case.

star_metricmetric_uuidstrnamestrsuccess_thresholdfloatsuccess_threshold_pctintAPIStarMetricParam
optional
workspace_uuidstr
optional

The workspace uuid.

Returns
EvaluationTestCaseCreateResponseclass
Hide ParametersShow Parameters
test_case_uuidstr
optional

Test‑case UUID.

from do_gradientai import GradientAI

client = GradientAI()
evaluation_test_case = client.agents.evaluation_test_cases.create()
print(evaluation_test_case.test_case_uuid)
200 Example
{
  "test_case_uuid": "\"123e4567-e89b-12d3-a456-426614174000\""
}