deployments

List deployment test results

Changed on

Results of each test case from this deployment's test phase, ordered by agent and test name.

Required permission: deployments.test.

get/v1/projects/{project_id}/deployments/{deployment_id}/test-runs

Request

  • Base URL
    https://api.connic.co
  • Auth
    HTTP bearer

Path parameters

project_id, string uuid required

ID of the project the API key belongs to.

deployment_id, string uuid required

Deployment ID from GET /deployments.

Query parameters

convert_costs_to, 'EUR' | 'USD' nullable

Convert token costs to EUR or USD at the daily ECB reference rate of each model call

Response

Successful Response

DeploymentTestRunWithCost[] required
id, string uuid required
deployment_id, string uuid required

ID of the deployment whose test phase ran this case.

agent_name, string required

Agent under test.

test_name, string required

Test case name from the agent's tests in code.

runs, integer required

Number of agent runs the case executes.

successes, integer required

Number of agent runs that passed so far.

success_threshold, integer required

Percentage of runs that must pass for the case to pass.

passed, boolean required

Whether the case passed; false until it finishes.

failure_reason, string nullable

Short explanation when the case failed or was cancelled.

agent_run_ids, string[] required

IDs of the agent runs executed for this case, in order.

agent_run_passed, boolean[] required

Pass result for each entry in agent_run_ids; null while that run's result is pending.

started_at, string date-time required

When the case was planned at the start of the test phase.

ended_at, string date-time nullable

When the case finished; null while pending or running.

status, string nullable

pending, running, passed, failed, cancelled when the deployment was cancelled first, or unchanged when the case was not run because it already passed with nothing it depends on changed.

reused_from_deployment_id, string uuid nullable

For an unchanged case, the deployment or test run where it passed. null otherwise.

token_usage, TestRunTokenUsage

Token counts summed over the case's agent runs, including judge evaluations of those runs.

token_cost, PublicTokenCostResponse nullable

Token cost in each model's pricing currency, or in one currency when convert_costs_to is set.

Changes

    • info

      added the required property items/token_cost/anyOf[subschema #1: PublicTokenCostResponse]/coverage/missing_price_models to the response with the status

    • info

      added the optional property items/token_cost/anyOf[subschema #1: PublicTokenCostResponse]/breakdown/additionalProperties/external_cost to the response with the status