Metrics API
Metrics API
Manage your evaluation metrics programmatically. Supports standard (audio), LLM-as-Judge, and Code-as-Judge metrics.
List Metrics
Optional filters:
Response:
Create Metric
LLM-as-Judge Metric
Code-as-Judge Metric
Metric Types
Result Types
Get Metric
Returns metric with associated scenario_ids and agent_ids.
Update Metric
Same body format as create. Note: metrics_type cannot be changed after creation (e.g., cannot switch from LLM-as-Judge to Code-as-Judge).
Delete Metric
Returns 204 No Content. Standard (system-defined) metrics cannot be deleted.
Generate Metrics with AI
Returns an array of generated metric definitions. The system checks existing metrics to avoid duplicates.
Bulk Create Metrics
Duplicate metric names are automatically skipped.
Validate Code Metric
Response:
Test Code Metric Against a Call
Response:
Toggle Standard Metrics
Enable or disable standard audio metrics per agent:
Toggle Custom Metrics
Enable or disable custom LLM/code metrics per agent: