Skip to navigation

get_metric_verdicts

Lists the conversations whose latest verdict on one custom metric is pass or fail in a date range, newest first, with the judge’s reasoning and quote.

It picks the conversations that get_ada_metric counts for a custom metric’s pass rate. These are the conversations with activity on any day of the range, test conversations included. With the same range, time zone, and filters, total equals the pass_count or fail_count of that pass rate.

Read-only. It is part of the improvement loop.

Example prompts

  • “Show me the conversations that failed the Gives the refund date metric last week.”
  • “List the email conversations that passed this metric in November.”

Parameters

ParameterTypeRequiredDescription
metric_idstringYesThe custom metric or the objective of a change set.
verdictstringYespass or fail.
start_datestringYesThe first day, YYYY-MM-DD.
end_datestringYesThe last day, YYYY-MM-DD.
time_zonestringNoThe IANA time zone of the days. Defaults to UTC.
filtersarrayNoFilters in the shape that get_ada_metric uses.
limitintegerNoThe conversations to return, from 1 to 50. Defaults to 50.

Response

FieldDescription
metric_idThe metric.
verdictThe verdict that was listed.
start_date, end_dateThe range.
totalThe number of conversations with this verdict in the range. Use it as the count, because the list holds at most 50 conversations.
conversationsThe newest conversations first. Each has conversation_id, verdict, score, reasoning, quote, metric_version, judge_version, evaluated_at, and scored_at.

pass and fail are the judge’s raw verdicts. On a higher_is_worse metric, pass is the bad outcome.

An unknown metric_id or a filter that the list can’t apply returns an error. If the verdicts can’t be read, the tool returns an error, not an empty list.