Creating a Metric
External API view set for managing metrics. This view set provides endpoints to create, retrieve, update, and delete metrics associated with AI agents within a specific organization.
Authorizations
API Key Authentication. It should be included in the header of each request.
Body
Name of the metric
Description of what this metric evaluates
Whether this metric evaluates audio content
The evaluation prompt used for this metric
External identifier for the assistant
Type of metric (e.g., basic, custom_prompt, custom_code)
Type of evaluation (e.g., boolean, enum, score)
Possible values for enum-type metrics
Order in which to display this metric in the UI
The AI agent this metric is associated with
Response
255
The overall score for this metric across all test sets
The total score for this metric
basic
- Basiccustom_prompt
- Custom Promptcustom_code
- Custom Code
basic
, custom_prompt
, custom_code
binary_workflow_adherence
- Binary Workflow Adherencebinary_qualitative
- Binary Qualitativecontinuous_qualitative
- Continuous Qualitativenumeric
- Numericenum
- Enum
binary_workflow_adherence
, binary_qualitative
, continuous_qualitative
, numeric
, enum
always
- Alwaysautomatic
- Automaticcustom
- Custom
always
, automatic
, custom
-2147483648 <= x <= 2147483647