Skip to content
  • Auto
  • Light
  • Dark

Create

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

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

ParametersExpand Collapse
dataset_uuid: Optional[str]

Dataset against which the test‑case is executed.

description: Optional[str]

Description of the test case.

metrics: Optional[List[str]]

Full metric list to use for evaluation test case.

name: Optional[str]

Name of the test case.

star_metric: Optional[APIStarMetricParam]
workspace_uuid: Optional[str]

The workspace uuid.

ReturnsExpand Collapse
class EvaluationTestCaseCreateResponse:
test_case_uuid: Optional[str]

Test‑case UUID.

from gradient import Gradient

client = Gradient()
evaluation_test_case = client.agents.evaluation_test_cases.create()
print(evaluation_test_case.test_case_uuid)
{
  "test_case_uuid": "123e4567-e89b-12d3-a456-426614174000"
}
Returns Examples
{
  "test_case_uuid": "123e4567-e89b-12d3-a456-426614174000"
}