Update
Update an Evaluation Test Case.
agents.evaluation_test_cases.update(strpath_test_case_uuid, EvaluationTestCaseUpdateParams**kwargs) -> test_case_uuidstrversionintEvaluationTestCaseUpdateResponse
put/v2/gen-ai/evaluation_test_cases/{test_case_uuid}
To update an evaluation test-case send a PUT request to /v2/gen-ai/evaluation_test_cases/{test_case_uuid}
.
Parameters
test_case_uuidstr
dataset_uuidstr
optional
Dataset against which the test‑case is executed.
descriptionstr
optional
Description of the test case.
namestr
optional
Name of the test case.
star_metricmetric_uuidstrnamestrsuccess_thresholdfloatsuccess_threshold_pctintAPIStarMetricParam
optional
test_case_uuidstr
Returns
EvaluationTestCaseUpdateResponseclass
from do_gradientai import GradientAI
client = GradientAI()
evaluation_test_case = client.agents.evaluation_test_cases.update(
path_test_case_uuid="\"123e4567-e89b-12d3-a456-426614174000\"",
)
print(evaluation_test_case.test_case_uuid)
200 Example
{
"test_case_uuid": "\"123e4567-e89b-12d3-a456-426614174000\"",
"version": 123
}