List test run attempts
curl --request GET \
--url https://guidinghand.ai/v1/test_runs/{test_run_id}/attempts \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://guidinghand.ai/v1/test_runs/{test_run_id}/attempts', 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}/attempts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"object": "attempt",
"attempt_id": "at_Lc0aQ3Vb7sT2",
"test_run_id": "<string>",
"test_case_id": "<string>",
"key": "<string>",
"agent_id": "<string>",
"try": 123,
"retry_of": "<string>",
"status": "queued",
"outcome": "passed",
"task_id": "<string>",
"app_version": "1.0.28",
"replay_url": "<string>",
"check": {
"before": "<string>",
"after": "<string>",
"passed": true
},
"judge": {
"passed": true,
"reason": "<string>"
},
"explanation": "<string>",
"customer": [
{
"question": "<string>",
"answer": "<string>",
"actions": [
"admin_yes"
]
}
],
"error": "<string>",
"metrics": {
"active_seconds": 123,
"steps": 123,
"questions": 123,
"approvals": 123,
"cost_cents": 123,
"price_cents": 123
},
"runner_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"started_at": "2023-11-07T05:31:56Z",
"finished_at": "2023-11-07T05:31:56Z",
"grounded": true,
"score": 3,
"answer": "<string>",
"conversation_id": "<string>",
"procedure_ids": [
"<string>"
],
"procedure_revisions": {
"prc_4mJx0aQe1": 3
},
"input": {},
"input_set": 123
}
],
"has_more": true,
"next_cursor": "<string>",
"total_count": 123
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"code": "<string>",
"test_case_ids": [
"<string>"
],
"decided_by": {
"type": "person",
"email": "<string>",
"key_id": "<string>"
},
"conversation_id": "<string>",
"agent_id": "<string>",
"approval_id": "<string>",
"question_id": "<string>"
}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"code": "<string>",
"test_case_ids": [
"<string>"
],
"decided_by": {
"type": "person",
"email": "<string>",
"key_id": "<string>"
},
"conversation_id": "<string>",
"agent_id": "<string>",
"approval_id": "<string>",
"question_id": "<string>"
}
}Test runs
List test run attempts
Newest first.
GET
/
v1
/
test_runs
/
{test_run_id}
/
attempts
List test run attempts
curl --request GET \
--url https://guidinghand.ai/v1/test_runs/{test_run_id}/attempts \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://guidinghand.ai/v1/test_runs/{test_run_id}/attempts', 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}/attempts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"object": "attempt",
"attempt_id": "at_Lc0aQ3Vb7sT2",
"test_run_id": "<string>",
"test_case_id": "<string>",
"key": "<string>",
"agent_id": "<string>",
"try": 123,
"retry_of": "<string>",
"status": "queued",
"outcome": "passed",
"task_id": "<string>",
"app_version": "1.0.28",
"replay_url": "<string>",
"check": {
"before": "<string>",
"after": "<string>",
"passed": true
},
"judge": {
"passed": true,
"reason": "<string>"
},
"explanation": "<string>",
"customer": [
{
"question": "<string>",
"answer": "<string>",
"actions": [
"admin_yes"
]
}
],
"error": "<string>",
"metrics": {
"active_seconds": 123,
"steps": 123,
"questions": 123,
"approvals": 123,
"cost_cents": 123,
"price_cents": 123
},
"runner_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"started_at": "2023-11-07T05:31:56Z",
"finished_at": "2023-11-07T05:31:56Z",
"grounded": true,
"score": 3,
"answer": "<string>",
"conversation_id": "<string>",
"procedure_ids": [
"<string>"
],
"procedure_revisions": {
"prc_4mJx0aQe1": 3
},
"input": {},
"input_set": 123
}
],
"has_more": true,
"next_cursor": "<string>",
"total_count": 123
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"code": "<string>",
"test_case_ids": [
"<string>"
],
"decided_by": {
"type": "person",
"email": "<string>",
"key_id": "<string>"
},
"conversation_id": "<string>",
"agent_id": "<string>",
"approval_id": "<string>",
"question_id": "<string>"
}
}{
"error": {
"type": "invalid_request",
"message": "<string>",
"code": "<string>",
"test_case_ids": [
"<string>"
],
"decided_by": {
"type": "person",
"email": "<string>",
"key_id": "<string>"
},
"conversation_id": "<string>",
"agent_id": "<string>",
"approval_id": "<string>",
"question_id": "<string>"
}
}