From 71e7298a689498c167ce856628d9b376c4a6646d Mon Sep 17 00:00:00 2001 From: algolia-bot Date: Thu, 14 Nov 2024 09:18:19 +0000 Subject: [PATCH] feat(specs): update estimate response type [skip-bc] (generated) https://github.com/algolia/api-clients-automation/pull/4101 Co-authored-by: algolia-bot Co-authored-by: Christopher Hawke <69921547+cdhawke@users.noreply.github.com> --- .../abtesting/models/estimate_ab_test_response.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/algoliasearch/abtesting/models/estimate_ab_test_response.py b/algoliasearch/abtesting/models/estimate_ab_test_response.py index 010eebb7b..e2ff1dd0c 100644 --- a/algoliasearch/abtesting/models/estimate_ab_test_response.py +++ b/algoliasearch/abtesting/models/estimate_ab_test_response.py @@ -8,7 +8,7 @@ from json import loads from sys import version_info -from typing import Any, Dict, Optional +from typing import Any, Dict, List, Optional from pydantic import BaseModel, ConfigDict @@ -20,8 +20,7 @@ _ALIASES = { "duration_days": "durationDays", - "control_sample_size": "controlSampleSize", - "experiment_sample_size": "experimentSampleSize", + "sample_sizes": "sampleSizes", } @@ -36,10 +35,8 @@ class EstimateABTestResponse(BaseModel): duration_days: Optional[int] = None """ Estimated number of days needed to reach the sample sizes required for detecting the configured effect. This value is based on historical traffic. """ - control_sample_size: Optional[int] = None - """ Number of tracked searches needed to be able to detect the configured effect for the control variant. """ - experiment_sample_size: Optional[int] = None - """ Number of tracked searches needed to be able to detect the configured effect for the experiment variant. """ + sample_sizes: Optional[List[int]] = None + """ Sample size estimates for each variant. The first element is the control variant. Each element is the estimated number of searches required to achieve the desired statistical significance. """ model_config = ConfigDict( use_enum_values=True,