List Test Cases
curl --request GET \
--url https://{tenant_id}.api.useago.com/api/v1/simulation/datasets/{dataset_id}/test-cases \
--header 'X-API-Key: <api-key>'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/simulation/datasets/{dataset_id}/test-cases"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://{tenant_id}.api.useago.com/api/v1/simulation/datasets/{dataset_id}/test-cases', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": "<string>",
"question": "<string>",
"expected_type": "<string>",
"object": "simulation_test_case",
"expected_answer": "<string>",
"expected_tool_name": "<string>",
"expected_tool_args": {},
"expected_agent_id": "<string>",
"expected_agent_name": "<string>",
"metadata": {},
"order": 123,
"persona_id": "<string>",
"persona_name": "<string>",
"api_data_overrides": {},
"tool_call_overrides": {},
"steps": [],
"created_at": "<string>"
}
],
"has_more": true,
"total": 123,
"object": "list"
}Simulation
List Test Cases
List all test cases for a dataset.
GET
/
api
/
v1
/
simulation
/
datasets
/
{dataset_id}
/
test-cases
List Test Cases
curl --request GET \
--url https://{tenant_id}.api.useago.com/api/v1/simulation/datasets/{dataset_id}/test-cases \
--header 'X-API-Key: <api-key>'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/simulation/datasets/{dataset_id}/test-cases"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://{tenant_id}.api.useago.com/api/v1/simulation/datasets/{dataset_id}/test-cases', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": "<string>",
"question": "<string>",
"expected_type": "<string>",
"object": "simulation_test_case",
"expected_answer": "<string>",
"expected_tool_name": "<string>",
"expected_tool_args": {},
"expected_agent_id": "<string>",
"expected_agent_name": "<string>",
"metadata": {},
"order": 123,
"persona_id": "<string>",
"persona_name": "<string>",
"api_data_overrides": {},
"tool_call_overrides": {},
"steps": [],
"created_at": "<string>"
}
],
"has_more": true,
"total": 123,
"object": "list"
}