The POST /persona-eval-suites/{id}/runs endpoint executes persona evaluation suites asynchronously using AWS Step Functions. Start evaluation suite runs, track execution progress via ARN, and monitor comprehensive persona performance across multiple evaluation criteria.
POST https://your-api-name.mercury.ratiomachina.com/persona-eval-suites/{id}/runs
Content-Type: application/json
Authentication: x-mercury-api-key: YOUR_API_KEYExecute a persona evaluation suite asynchronously. The system creates a new Step Functions execution to run all evaluations in the suite and returns tracking information including the AWS execution ARN.
{}id - PersonaEvalSuite UUID to executeOptional - Empty body or custom configuration{
"personaEvalSuiteRun": {
"id": "789e1234-e89b-12d3-a456-426614174000",
"suiteId": "456e7890-e89b-12d3-a456-426614174000",
"suiteName": "Customer Service Evaluation Suite",
"status": "running",
"totalEvals": 2,
"passedEvals": 0,
"failedEvals": 0,
"executionArn": "arn:aws:states:us-west-2:123456789012:execution:hermes-persona-eval-runner-staging:789e1234-e89b-12d3-a456-426614174000",
"startedAt": "2024-01-15T10:35:00Z",
"completedAt": null
}
}id - UUID of the newly created evaluation suite runsuiteId - UUID of the parent persona evaluation suitesuiteName - Name of the evaluation suite being runstatus - Current status (running, completed, failed)totalEvals - Total number of evaluations in the suiteexecutionArn - AWS Step Functions execution ARN for trackingExecute a comprehensive customer support evaluation suite with multiple evaluation criteria and performance metrics.
curl -X POST 'https://api.hermes.com/persona-eval-suites/support-suite-456/runs' \
-H 'Content-Type: application/json' \
-H 'x-hermes-api-key: YOUR_API_KEY' \
-d '{}'{
"personaEvalSuiteRun": {
"id": "abc12345-e89b-12d3-a456-426614174000",
"suiteId": "support-suite-456",
"suiteName": "Customer Support Excellence Evaluation",
"status": "running",
"totalEvals": 8,
"passedEvals": 0,
"failedEvals": 0,
"executionArn": "arn:aws:states:us-west-2:123456789012:execution:hermes-persona-eval-runner-staging:abc12345-e89b-12d3-a456-426614174000",
"startedAt": "2024-01-15T14:20:00Z",
"completedAt": null
}
}Execute a sales performance evaluation suite to assess persona effectiveness in lead qualification, objection handling, and closing techniques.
curl -X POST 'https://api.hermes.com/persona-eval-suites/def67890-e89b-12d3-a456-426614174000/runs' \
-H 'Content-Type: application/json' \
-H 'x-hermes-api-key: YOUR_API_KEY' \
-d '{
"configuration": {
"priority": "high",
"timeoutMinutes": 60
}
}'{
"personaEvalSuiteRun": {
"id": "def67890-e89b-12d3-a456-426614174000",
"suiteId": "def67890-e89b-12d3-a456-426614174000",
"suiteName": "Sales Performance Comprehensive Suite",
"status": "running",
"totalEvals": 12,
"passedEvals": 0,
"failedEvals": 0,
"executionArn": "arn:aws:states:us-west-2:123456789012:execution:hermes-persona-eval-runner-staging:def67890-e89b-12d3-a456-426614174000",
"startedAt": "2024-01-15T16:45:00Z",
"completedAt": null
}
}Example response for a completed evaluation suite run showing final results and completion timestamp.
{
"personaEvalSuiteRun": {
"id": "ghi98765-e89b-12d3-a456-426614174000",
"suiteId": "quality-assurance-suite-789",
"suiteName": "Quality Assurance Evaluation Suite",
"status": "completed",
"totalEvals": 5,
"passedEvals": 4,
"failedEvals": 1,
"executionArn": "arn:aws:states:us-west-2:123456789012:execution:hermes-persona-eval-runner-staging:ghi98765-e89b-12d3-a456-426614174000",
"startedAt": "2024-01-15T09:00:00Z",
"completedAt": "2024-01-15T09:25:00Z"
}
}{
"error": "PersonaEvalSuite not found",
"details": {
"suiteId": "invalid-suite-id",
"message": "No evaluation suite found with the provided ID"
},
"status": "error"
}This endpoint integrates with AWS Step Functions for asynchronous execution. Use the returned executionArn to track progress and monitor the evaluation suite run in the AWS Console.
curl -X POST 'https://api.hermes.com/persona-eval-suites/456e7890-e89b-12d3-a456-426614174000/runs' \
-H 'Content-Type: application/json' \
-H 'x-hermes-api-key: YOUR_API_KEY' \
-d '{}'curl -X POST 'https://api.hermes.com/persona-eval-suites/support-excellence-suite/runs' \
-H 'Content-Type: application/json' \
-H 'x-hermes-api-key: YOUR_API_KEY' \
-d '{
"configuration": {
"priority": "high",
"timeoutMinutes": 90,
"retryOnFailure": true
}
}'curl -X POST 'https://api.hermes.com/persona-eval-suites/external/cs-evaluation-suite-v2/runs' \
-H 'Content-Type: application/json' \
-H 'x-hermes-api-key: YOUR_API_KEY' \
-d '{}'