v8

latestOpenAPI 3.0.0Apache 2.0raw.githubusercontent.com2025-10-165266542.4 MB
DigitalOcean-public.v2-new_GradientAI Platform

Create Evaluation Test Case.

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

post/v2/gen-ai/evaluation_test_cases

Request body

dataset_uuidstring

Dataset against which the test‑case is executed.

descriptionstring

Description of the test case.

metricsstring[]

Full metric list to use for evaluation test case.

namestring

Name of the test case.

workspace_uuidstring

The workspace uuid.

Example request

{
  "dataset_uuid": "123e4567-e89b-12d3-a456-426614174000",
  "description": "example string",
  "metrics": [
    "example string"
  ],
  "name": "example name",
  "star_metric": {
    "metric_uuid": "123e4567-e89b-12d3-a456-426614174000",
    "name": "example name",
    "success_threshold": 123,
    "success_threshold_pct": 123
  },
  "workspace_uuid": "123e4567-e89b-12d3-a456-426614174000"
}

Response

A successful response.

test_case_uuidstring

Test‑case UUID.

Example response

{
  "test_case_uuid": "123e4567-e89b-12d3-a456-426614174000"
}