dots.v2.genAi.evaluation_test_cases.post()
Generated on 13 Nov 2026
from DoTs version
v1.24.0
Usage
client.v2.genAi.evaluation_test_cases.post(body: ApiCreateEvaluationTestCaseInputPublic, requestConfiguration?: RequestConfiguration<object>): Promise<undefined | ApiCreateEvaluationTestCaseOutput>Description
To create an evaluation test-case send a POST request to /v2/gen-ai/evaluation_test_cases.
Parameters
agentWorkspaceNamestring optionalExample:
example namedatasetUuidstring optionalExample:
123e4567-e89b-12d3-a456-426614174000Dataset against which the test‑case is executed.
descriptionstring optionalExample:
example stringDescription of the test case.
metricsarray of strings optionalExample:
["example string"]Full metric list to use for evaluation test case.
namestring optionalExample:
example nameName of the test case.
starMetricobject optionalShow child properties
metricUuidstring optionalExample:
123e4567-e89b-12d3-a456-426614174000namestring optionalExample:
example namesuccessThresholdnumber optionalExample:
123The success threshold for the star metric.
This is a value that the metric must reach to be considered successful.successThresholdPctinteger optionalExample:
123The success threshold for the star metric.
This is a percentage value between 0 and 100.
workspaceUuidstring optionalExample:
123e4567-e89b-12d3-a456-426614174000The workspace uuid.
Request Sample
Response Example
More Information
See /v2/gen-ai/evaluation_test_cases in the API reference for additional detail on responses, headers, parameters, and more.