custom-metrics
Create, grade, and read the Custom Metrics of your AI Agent. A custom metric describes a pass and a fail in your own words, and a judge grades each conversation against them.
Commands
Write a metric
Turn grading on or off
Test a metric
Read the results
Examples
Draft a metric from a description:
Create a metric that measures the AI Agent:
Test the metric on a sample of 100 conversations from two weeks, then read the failures:
Show the pass rate of one week for conversations in English:
List the IDs of the conversations that failed the metric in the last 30 days:
Details
createrequires--subject:ai_agent,human_agent, orcustomer. It also needs the pass description, the fail description, and the scoring guidance.- An authoring review checks a metric before it grades. A new metric that fails the review saves as a draft. If an edit to an active metric fails the review, the edit is held, and the live version keeps grading.
getshows each blocking issue. passandfailname the raw score. On ahigher_is_worsemetric, apassis a conversation where the unwanted behavior happened.- A change to
--directionchanges the meaning of every existing chart for the metric. pass-rate,latest-verdicts, andconversationscount test conversations.pass-ratecounts a conversation on each day that it has activity.- An account can start 10 backfills in a calendar month. A metric can have one backfill.
backfillasks before it starts. Use--dry-runto check first. - An AI Agent can evaluate 2,000 conversations in 24 hours, across its metrics. An evaluation job expires 7 days after it starts.
deletedoes not ask for confirmation.
For every option of a command, run it with --help, for example adacli acme custom-metrics create --help.
Related commands
conversations: read the conversations that a metric grades.topics: get the intent IDs for--intent-ids.changesets: manage the testing change set thatcreate --changesetpins a metric to.