evaluate_changeset_objective
evaluate_changeset_objective
Starts a background job that scores the objective of a change set on up to 500 conversations. Read the verdicts with get_metric_evaluation and the job_id it returns.
With OAuth, this tool needs the Owner or Admin role. The job stores nothing in the objective’s record, so the objective can be edited and evaluated again. It is part of the improvement loop. The assistant uses it twice:
- To check the objective. It scores the conversations you confirmed. The objective must give them the bad verdict:
fail, orpasson ahigher_is_worseobjective. If most of them get the good verdict, the objective doesn’t describe the problem. - To read the starting pass rate. It scores a sample from a date range, with the filters that narrow it to the problem.
Example prompts
- “Check that the objective fails the 4 conversations I confirmed.”
- “What is the objective’s pass rate on billing conversations from the last 14 days?”
Parameters
Pass changeset_id, and exactly one of conversation_ids and sample.
The sample object has these fields:
A sample picks conversations that match the filters, are in the objective’s Intent scope, and have no verdict yet.
Response
Returns the job at once, with the same fields as get_metric_evaluation and no verdicts yet. Read the verdicts with that tool. A sample also returns matched: the number of conversations that match. A sample that matches no conversation returns status completed and total 0.
If the change set has no objective, or the change set isn’t found, the tool returns an error.
Limits
- A job evaluates up to 500 conversations.
- If analytics storage is unavailable, the tool returns an error and starts no job.
- An AI Agent can evaluate 2,000 conversations in 24 hours, across its metrics and objectives. Every conversation of a job counts when the job starts.
- The job evaluates the objective as it is when the job starts. A draft objective can be evaluated too.