Evaluators
Creating Evaluator
Learn how to create evaluators for your agents
Create Evaluator API
Create a new evaluator for a specific agent with defined metrics and personality traits.
API Endpoint
Method | Endpoint |
---|---|
POST | https://new-prod.vocera.ai/test_framework/v1/scenarios-external/ |
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 | integer | Yes* | ID of the agent |
assistant_id | string | Yes* | The assistant ID associated with agent |
name | string | Yes | Name of the evaluator |
personality | integer | Yes | ID of the personality to use |
instructions | string | Yes | Instructions for the evaluator |
agent | integer | Yes* | ID of the agent |
assistant_id | string | Yes* | The assistant ID associated with agent |
expected_outcome_prompt | string | No | Prompt to evaluate expected outcome |
metrics | array|integer|string | No | Metrics to set to scenario, can be array of metric IDs or first N metrics or “all” to add all or “predefined” to add all predefined |
* Only either of agent
or assistant_id
is required
Example Request Body
Response
A successful request returns the created evaluator details.
Response Fields
Field | Type | Description |
---|---|---|
id | integer | Unique identifier for the evaluator |
name | string | Name of the evaluator |
agent | integer | ID of the associated agent |
personality | integer | ID of the personality used |
personality_name | string | Human-readable name of the personality |
runs | array | List of evaluator runs (empty for new evaluators) |
instructions | string | Evaluator instructions |
expected_outcome_prompt | string | Prompt to evaluate expected outcome |
metrics | array | Array of metric IDs |