Results
Reevaluating metrics
Learn how to reevaluate metrics for specific runs
Reevaluate Metrics API
Reevaluate specific metrics for selected test runs
API Endpoint
Method | Endpoint |
---|---|
POST | https://new-prod.vocera.ai/test_framework/v1/results-external/:result-id/evaluate_metrics/ |
Authentication
Include your API key in the request headers:
Header | Description |
---|---|
X-VOCERA-API-KEY | Your API key obtained from the dashboard |
URL Parameters
Include the result ID in the URL:
Parameter | Type | Required | Description |
---|---|---|---|
result-id | integer | Yes | ID of the result to reevaluate |
Request Body
Field | Type | Required | Description |
---|---|---|---|
run_ids | array | Yes | Array of run IDs to reevaluate |
metric_ids | array | Yes | Array of metric IDs to reevaluate |
Example Request
Response Format
A successful request returns details about the reevaluation result.
Response Fields
Field | Type | Description |
---|---|---|
id | integer | The result ID |
agent | integer | ID of associated agent |
status | string | Status of the result, can be one of: • running - Initial state when evaluator starts• in_progress - Call is currently executing• completed - Call has finished successfully• failed - Call encountered an error• pending - Testing agent is waiting to be called |
success_rate | float | Percentage of runs that passed |
run_as_text | boolean | If executed as text (llm websocket) or not |