Metrics
Generating Metrics
Learn how to automatically generate metrics for your agents
Generate Metrics API
Automatically generate a set of evaluation metrics for an agent which can then be used to create metrics.
API Endpoint
Method | Endpoint |
---|---|
POST | https://new-prod.vocera.ai/test_framework/v1/metrics-external/generate_metrics/ |
Authentication
Include your API key in the request headers:
Header | Description |
---|---|
X-VOCERA-API-KEY | Your API key obtained from the dashboard |
Request Parameters
Parameter | Type | Required | Description |
---|---|---|---|
agent_id | integer | Yes | ID of the agent to generate metrics for |
assistant_id | string | Yes* | The assistant ID associated with agent to generate metrics for |
num_metrics | integer | Yes | Number of metrics to generate |
* Only either of agent_id
or assistant_id
is required
Example Request Body
Response
The API returns an array of generated metric objects.
Response Fields
Field | Type | Description |
---|---|---|
name | string | Generated name for the metric |
description | string | Detailed description of what the metric evaluates |
agent | integer | ID of the associated agent |
eval_type | string | Type of metric evaluation |