Create Evaluation Test Case.
To create an evaluation test-case send a POST request to /v2/gen-ai/evaluation_test_cases.
Request body
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.
Example response
{
"test_case_uuid": "123e4567-e89b-12d3-a456-426614174000"
}Changes
Changed in 4 of the 8 revisions of this API.1430
- ○
api tag
DigitalOcean-public.v2-new_GradientAI Platformaddedapi-tag-added
- ○
api tag
GradientAI Platformremovedapi-tag-removed
This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
api operation id
create_evaluation_test_caseremoved and replaced withgenai_create_evaluation_test_caseapi-operation-id-removed
- ○
the endpoint scheme security
bearer_authwas added to the APIapi-security-added
- ○
api tag
GradientAI Platformaddedapi-tag-added
- ○
api tag
GenAIAPIremovedapi-tag-removed
- ○
added the new optional request property
star_metric/success_thresholdnew-optional-request-property
- ○
request body became optional
request-body-became-optional
- ○
added the non-success response with the status
401response-non-success-status-added
- ○
added the non-success response with the status
404response-non-success-status-added
- ○
added the non-success response with the status
429response-non-success-status-added
- ○
added the non-success response with the status
500response-non-success-status-added
This revision also has 70 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ▲
request body became required
request-body-became-required
- ●
the optional response header
ratelimit-limitremoved for the status200optional-response-header-removed
- ●
the optional response header
ratelimit-remainingremoved for the status200optional-response-header-removed
- ●
the optional response header
ratelimit-resetremoved for the status200optional-response-header-removed
- ●
removed the request property
star_metric/success_thresholdrequest-property-removed
- ○
api operation id
genai_create_evaluation_test_caseremoved and replaced withcreate_evaluation_test_caseapi-operation-id-removed
- ○
the endpoint scheme security
bearer_authwas removed from the APIapi-security-removed
- ○
api tag
GenAIAPIaddedapi-tag-added
- ○
api tag
GradientAI Platformremovedapi-tag-removed
- ○
removed the non-success response with the status
401response-non-success-status-removed
- ○
removed the non-success response with the status
404response-non-success-status-removed
- ○
removed the non-success response with the status
429response-non-success-status-removed
- ○
removed the non-success response with the status
500response-non-success-status-removed
This revision also has 436 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
api operation id
create_evaluation_test_caseremoved and replaced withgenai_create_evaluation_test_caseapi-operation-id-removed
- ○
the endpoint scheme security
bearer_authwas added to the APIapi-security-added
- ○
api tag
GradientAI Platformaddedapi-tag-added
- ○
api tag
GenAIAPIremovedapi-tag-removed
- ○
added the new optional request property
star_metric/success_thresholdnew-optional-request-property
- ○
request body became optional
request-body-became-optional
- ○
added the non-success response with the status
401response-non-success-status-added
- ○
added the non-success response with the status
404response-non-success-status-added
- ○
added the non-success response with the status
429response-non-success-status-added
- ○
added the non-success response with the status
500response-non-success-status-added
This revision also has 70 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○