Get an attempt
curl --request GET \
--url https://guidinghand.ai/v1/attempts/{attempt_id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://guidinghand.ai/v1/attempts/{attempt_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://guidinghand.ai/v1/attempts/{attempt_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"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,
"test_case": {
"object": "test_case",
"test_case_id": "tc_8Kq2mZ0aLp4x",
"key": "DSP-01",
"name": "Apps switched to dark mode",
"prompt": "All my windows suddenly went black. How do I get the white back?",
"start_state": "win10-22h2",
"setup_script": "<string>",
"success": {
"check_script": "<string>",
"rubric": "<string>"
},
"customer": {
"persona": "Retired teacher. Not technical. Short, polite answers.",
"facts": {
"Wi-Fi network": "HomeNet",
"Wi-Fi password": {
"secret": "blue-kite-42"
}
},
"clicks_admin_prompts": true,
"does_steps": true
},
"operator": {
"approvals": "approve"
},
"limits": {
"minutes": 10,
"steps": 250
},
"runs_on": "vm",
"category": "Display & graphics",
"tags": [
"uac"
],
"metadata": {
"customer_id": "cus_42"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"must_visit": [
"support.example.com|docs.example.com"
],
"expected": "<string>",
"messages": [
"<string>"
],
"start_url": "<string>",
"procedure_id": "prc_4mJx0aQe1",
"inputs": [
{
"mtm": "20XW",
"region": "UK"
},
{
"mtm": "21DE",
"region": "US"
}
],
"objects": [
"<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>"
}
}{
"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
Get an attempt
The attempt, with the copy of the test case it ran (test_case).
GET
/
v1
/
attempts
/
{attempt_id}
Get an attempt
curl --request GET \
--url https://guidinghand.ai/v1/attempts/{attempt_id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://guidinghand.ai/v1/attempts/{attempt_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://guidinghand.ai/v1/attempts/{attempt_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"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,
"test_case": {
"object": "test_case",
"test_case_id": "tc_8Kq2mZ0aLp4x",
"key": "DSP-01",
"name": "Apps switched to dark mode",
"prompt": "All my windows suddenly went black. How do I get the white back?",
"start_state": "win10-22h2",
"setup_script": "<string>",
"success": {
"check_script": "<string>",
"rubric": "<string>"
},
"customer": {
"persona": "Retired teacher. Not technical. Short, polite answers.",
"facts": {
"Wi-Fi network": "HomeNet",
"Wi-Fi password": {
"secret": "blue-kite-42"
}
},
"clicks_admin_prompts": true,
"does_steps": true
},
"operator": {
"approvals": "approve"
},
"limits": {
"minutes": 10,
"steps": 250
},
"runs_on": "vm",
"category": "Display & graphics",
"tags": [
"uac"
],
"metadata": {
"customer_id": "cus_42"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"must_visit": [
"support.example.com|docs.example.com"
],
"expected": "<string>",
"messages": [
"<string>"
],
"start_url": "<string>",
"procedure_id": "prc_4mJx0aQe1",
"inputs": [
{
"mtm": "20XW",
"region": "UK"
},
{
"mtm": "21DE",
"region": "US"
}
],
"objects": [
"<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>"
}
}{
"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>"
}
}Authorizations
Response
OK
One try of one case with one agent: a conversation, a browser task, or a task on a fresh machine; then the judge (and, on a machine, the check).