Skip to navigation

get_metric_evaluation

Reads an evaluation job that evaluate_custom_metric or evaluate_changeset_objective started. It returns the status, the counts by verdict, and one page of verdicts with the judge’s reasoning.

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

Example prompts

  • “Is the evaluation done? Show me the failures.”
  • “Show the next page of failing conversations.”

Parameters

ParameterTypeRequiredDescription
job_idstringYesThe evaluation job.
verdictstringNoReturns only the conversations with this verdict: pass, fail, not_applicable, unjudged, undecided, or not_evaluated.
offsetintegerNoThe first conversation of the page. Pass next_offset from the last response. Defaults to 0. Page through the results after the job completes.
limitintegerNoThe conversations in one page, from 1 to 50. Defaults to 50.
wait_secondsintegerNoWaits up to this many seconds for the job to complete, at most 50. Defaults to 0.

Response

FieldDescription
job_idThe evaluation job.
metric_idThe metric or objective that was evaluated.
changeset_idThe change set, for a job that evaluates an objective.
statusrunning or completed.
still_runningtrue while the job runs. The counts and verdicts are then partial. Call the tool again with the same arguments.
totalThe number of conversations in the job.
matchedFor a sample, the number of conversations that match its filters.
evaluatedThe number of conversations with a result so far.
countsThe number of conversations for each verdict, with not_evaluated for those without one.
conversationsOne page of results. Each has conversation_id, verdict, reasoning, quote, not_evaluated, and detail.
next_offsetThe offset of the next page, or null on the last page.
expires_atWhen the job expires: 7 days after it starts.
waited_secondsReturned with wait_seconds. How long the call waited.

pass and fail are the judge’s raw verdicts. On a higher_is_worse metric, pass is the bad outcome. not_applicable means the metric doesn’t apply to the conversation. undecided means the metric applies, but its criteria don’t decide the verdict. A verdict of unjudged means the judge gave no verdict, and reasoning says why. A conversation with no verdict has a not_evaluated reason:

  • out_of_scope or scope_unresolved: the conversation is outside the metric’s scope, or the scope couldn’t be read.
  • no_transcript or transcript_incomplete: the transcript is missing or incomplete. For an incomplete transcript, detail says why.
  • timed_out: the job reached its deadline, about 3 hours after it started.
  • conversation_deleted: the conversation was deleted.
  • failed: the evaluation failed.

An unknown or expired job_id returns an error.