curl https://api.playgent.com/v1/runs/run_def456 \
-H "Authorization: Bearer your-api-key"
{
"run_id": "run_def456",
"status": "completed",
"success": false,
"test_case": { "id": "tc_xyz789", "name": "Refund Request Flow" },
"agent": { "id": "agent_abc123", "name": "Customer Support Agent" },
"turns": [
{
"turn_index": 0,
"input": [{ "role": "user", "content": "I want a refund..." }],
"output": [{ "role": "assistant", "content": "I'd be happy to help..." }],
"expected_behavior": "Agent should ask for order details...",
"success": true,
"evaluation": {
"overall_pass": true,
"scorer_outputs": {
"relevance": { "score": 0.92, "reasoning": "Response directly addresses refund request" },
"faithfulness": { "score": 0.88, "reasoning": "All claims supported by context" }
}
},
"metrics": {
"latency_ms": 1240,
"tokens": { "input": 156, "output": 89 },
"cost_usd": 0.0034
},
"trace_id": "trace_ghi789"
}
],
"summary": {
"turns_passed": 2,
"turns_failed": 1,
"avg_latency_ms": 1450,
"total_cost_usd": 0.0102
}
}
Test Runs
Get Run
Get detailed run results
GET
/
v1
/
runs
/
{run_id}
curl https://api.playgent.com/v1/runs/run_def456 \
-H "Authorization: Bearer your-api-key"
{
"run_id": "run_def456",
"status": "completed",
"success": false,
"test_case": { "id": "tc_xyz789", "name": "Refund Request Flow" },
"agent": { "id": "agent_abc123", "name": "Customer Support Agent" },
"turns": [
{
"turn_index": 0,
"input": [{ "role": "user", "content": "I want a refund..." }],
"output": [{ "role": "assistant", "content": "I'd be happy to help..." }],
"expected_behavior": "Agent should ask for order details...",
"success": true,
"evaluation": {
"overall_pass": true,
"scorer_outputs": {
"relevance": { "score": 0.92, "reasoning": "Response directly addresses refund request" },
"faithfulness": { "score": 0.88, "reasoning": "All claims supported by context" }
}
},
"metrics": {
"latency_ms": 1240,
"tokens": { "input": 156, "output": 89 },
"cost_usd": 0.0034
},
"trace_id": "trace_ghi789"
}
],
"summary": {
"turns_passed": 2,
"turns_failed": 1,
"avg_latency_ms": 1450,
"total_cost_usd": 0.0102
}
}
Retrieve detailed results for a test run including all turns, evaluations, and metrics.
string
required
Unique run identifier
string
required
Run identifier
string
required
Run status:
queued, running, completed, failedboolean
required
Whether all turns passed
array
required
Array of turn results
Show turn object
Show turn object
integer
Turn position
array
Input messages
array
Output messages
string
Expected behavior
boolean
Whether turn passed
object
object
string
Linked trace ID
object
required
curl https://api.playgent.com/v1/runs/run_def456 \
-H "Authorization: Bearer your-api-key"
{
"run_id": "run_def456",
"status": "completed",
"success": false,
"test_case": { "id": "tc_xyz789", "name": "Refund Request Flow" },
"agent": { "id": "agent_abc123", "name": "Customer Support Agent" },
"turns": [
{
"turn_index": 0,
"input": [{ "role": "user", "content": "I want a refund..." }],
"output": [{ "role": "assistant", "content": "I'd be happy to help..." }],
"expected_behavior": "Agent should ask for order details...",
"success": true,
"evaluation": {
"overall_pass": true,
"scorer_outputs": {
"relevance": { "score": 0.92, "reasoning": "Response directly addresses refund request" },
"faithfulness": { "score": 0.88, "reasoning": "All claims supported by context" }
}
},
"metrics": {
"latency_ms": 1240,
"tokens": { "input": 156, "output": 89 },
"cost_usd": 0.0034
},
"trace_id": "trace_ghi789"
}
],
"summary": {
"turns_passed": 2,
"turns_failed": 1,
"avg_latency_ms": 1450,
"total_cost_usd": 0.0102
}
}
⌘I

