Get test run results
curl --request GET \
--url https://guidinghand.ai/v1/test_runs/{test_run_id}/results \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://guidinghand.ai/v1/test_runs/{test_run_id}/results', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://guidinghand.ai/v1/test_runs/{test_run_id}/results"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"test_case_id": "<string>",
"key": "<string>",
"name": "<string>",
"category": "<string>",
"tags": [
"<string>"
],
"agent_id": "<string>",
"tries": 123,
"passed": 123,
"failed": 123,
"error": 123,
"all_passed": true,
"median_seconds": 123,
"cost_cents": 123
}
],
"by_agent": {},
"by_tag": {},
"by_category": {}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"code": "<string>",
"answered_by": "customer",
"test_case_ids": [
"<string>"
]
}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"code": "<string>",
"answered_by": "customer",
"test_case_ids": [
"<string>"
]
}
}Test runs
Get test run results
Pass counts per case and agent, and by agent, tag and category. Available while the run is going, too.
GET
/
v1
/
test_runs
/
{test_run_id}
/
results
Get test run results
curl --request GET \
--url https://guidinghand.ai/v1/test_runs/{test_run_id}/results \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://guidinghand.ai/v1/test_runs/{test_run_id}/results', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://guidinghand.ai/v1/test_runs/{test_run_id}/results"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"test_case_id": "<string>",
"key": "<string>",
"name": "<string>",
"category": "<string>",
"tags": [
"<string>"
],
"agent_id": "<string>",
"tries": 123,
"passed": 123,
"failed": 123,
"error": 123,
"all_passed": true,
"median_seconds": 123,
"cost_cents": 123
}
],
"by_agent": {},
"by_tag": {},
"by_category": {}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"code": "<string>",
"answered_by": "customer",
"test_case_ids": [
"<string>"
]
}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"code": "<string>",
"answered_by": "customer",
"test_case_ids": [
"<string>"
]
}
}Authorizations
An org API key (gh_live_…) from Settings → API keys in the console.
Path Parameters
The test run’s id (tr_…).
Response
OK
Counts the last attempt of each (case, agent, try): an error that was retried counts as its retry.