ab-tests

Get A/B test comparison

Changed on

Compare control and variant performance for an A/B test.

Required permission: ab_tests.view. With judges.view, the response also includes judge names.

get/v1/projects/{project_id}/ab-tests/{test_id}/comparison

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.

test_id, string uuid required

A/B test ID from GET /ab-tests.

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

PublicABTestComparisonResponse required
test, ABTestResponse required

The A/B test.

control, PublicABTestArmStatsResponse required

Statistics for base agent runs assigned to the test.

variant, PublicABTestArmStatsResponse required

Statistics for variant runs assigned to the test.

has_enough_data, boolean required

True when both arms have at least min_sample_size completed runs.

min_sample_size, integer required

Minimum completed runs per arm set on the test.

analysis, PublicABTestAnalysisResponse nullable required

Sequential confidence analysis of the test's primary metric.

cost_comparison, PublicABTestCostComparisonResponse required

Average cost per run compared between the arms.

selected_judge_id, string uuid nullable

Judge whose scores fill avg_score: the primary-metric judge when the primary metric is judge_score, otherwise the quality judge. Present only when the caller can view judges.

selected_judge_name, string nullable

Name of the judge in selected_judge_id. Present only when the caller can view judges.

quality_judge_name, string nullable

Name of the test's quality judge. Present only when the caller can view judges.

Changes

    • info

      added the required property control/token_cost_coverage/missing_price_models to the response with the status

    • info

      added the required property variant/token_cost_coverage/missing_price_models to the response with the status