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
}
}
Get detailed run results
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.Documentation Index
Fetch the complete documentation index at: https://playgent.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
queued, running, completed, failedShow turn object
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
}
}