Skip to navigation

get_changeset_test

Reads a change set test that test_changeset started. For each test case, it gives the metric outcome of each run on the change set and on the live AI Agent. It also lists the test cases that the change set fixed or broke.

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

Example prompts

  • “Is the change set test done? What did it fix?”
  • “Did the change set break any test case that passes on the live Agent?”

Parameters

ParameterTypeRequiredDescription
test_idstringYesThe id that test_changeset returned.
wait_secondsintegerNoWaits until the test completes or this many seconds pass, at most 50. Defaults to 0.

Response

FieldDescription
idThe change set test.
changeset_idThe change set that was tested.
metric_idThe objective or custom metric that scores each run.
repeatsThe runs of each test case on each side.
statusrunning or completed.
created_atWhen the test started.
casesOne entry per test case, with test_case_id, live, and changeset. Each side lists its runs and an overall outcome.
liveThe number of test cases that passed, failed, or were not_measured on the live Agent.
changesetThe number of test cases that passed, failed, or were not_measured on the change set.
fixedThe test cases that fail on the live Agent and pass on the change set.
brokenThe test cases that pass on the live Agent and fail on the change set.
still_runningReturned when wait_seconds is above 0. true when the test didn’t complete in time. Call the tool again with the same arguments.
waited_secondsReturned when wait_seconds is above 0. How long the call waited.

Each run has a test_run_id, a conversation_id, an outcome, and the judge’s reasoning. The outcome is pass, fail, not_measured, or null while the run isn’t scored. pass is the good outcome on the metric, whatever its direction. A run is not_measured when it doesn’t complete, or when the metric gives it no pass or fail. A side’s outcome is null until every run has one. Then a side passes when most of its measured runs pass, and a tie fails. A side with no measured run is not_measured.

To read a simulated conversation, the assistant calls get_conversation with its conversation_id.