Creating Metrics in Bulk
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
255
Detailed description of what the metric evaluates
The AI agent this metric is associated with
Type of evaluation (e.g., boolean, enum, score)
binary_workflow_adherence
- Binary Workflow Adherencebinary_qualitative
- Binary Qualitativecontinuous_qualitative
- Continuous Qualitativenumeric
- Numericenum
- Enum
binary_workflow_adherence
, binary_qualitative
, continuous_qualitative
, numeric
, enum
Possible values for enum-type metrics
Whether audio evaluation is enabled for this metric
Type of metric (e.g., basic, custom_prompt, custom_code)
basic
- Basiccustom_prompt
- Custom Promptcustom_code
- Custom Code
basic
, custom_prompt
, custom_code
The evaluation prompt used for this metric
The evaluation trigger used for this metric
always
- Alwaysautomatic
- Automaticcustom
- Custom
always
, automatic
, custom
The evaluation trigger prompt used for this metric
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