Skip to content
  • Auto
  • Light
  • Dark

Create

Create Evaluation Test Case.
post/v2/gen-ai/evaluation_test_cases

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

Body Parameters
dataset_uuidstring
optional

Dataset against which the test‑case is executed.

descriptionstring
optional

Description of the test case.

metricsarray of string
optional

Full metric list to use for evaluation test case.

namestring
optional

Name of the test case.

star_metricmetric_uuidstringnamestringsuccess_thresholdnumbersuccess_threshold_pctnumberAPIStarMetric
optional
workspace_uuidstring
optional

The workspace uuid.

Returns
test_case_uuidstring
optional

Test‑case UUID.

curl https://api.digitalocean.com//v2/gen-ai/evaluation_test_cases \
    -H 'Content-Type: application/json' \
    -H "Authorization: Bearer $GRADIENTAI_API_KEY"
200 Example
{
  "test_case_uuid": "\"123e4567-e89b-12d3-a456-426614174000\""
}