Skip to content

Commit 71e7298

Browse files
algolia-botcdhawke
andcommitted
feat(specs): update estimate response type [skip-bc] (generated)
algolia/api-clients-automation#4101 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Christopher Hawke <[email protected]>
1 parent 7710f71 commit 71e7298

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

algoliasearch/abtesting/models/estimate_ab_test_response.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
from json import loads
1010
from sys import version_info
11-
from typing import Any, Dict, Optional
11+
from typing import Any, Dict, List, Optional
1212

1313
from pydantic import BaseModel, ConfigDict
1414

@@ -20,8 +20,7 @@
2020

2121
_ALIASES = {
2222
"duration_days": "durationDays",
23-
"control_sample_size": "controlSampleSize",
24-
"experiment_sample_size": "experimentSampleSize",
23+
"sample_sizes": "sampleSizes",
2524
}
2625

2726

@@ -36,10 +35,8 @@ class EstimateABTestResponse(BaseModel):
3635

3736
duration_days: Optional[int] = None
3837
""" Estimated number of days needed to reach the sample sizes required for detecting the configured effect. This value is based on historical traffic. """
39-
control_sample_size: Optional[int] = None
40-
""" Number of tracked searches needed to be able to detect the configured effect for the control variant. """
41-
experiment_sample_size: Optional[int] = None
42-
""" Number of tracked searches needed to be able to detect the configured effect for the experiment variant. """
38+
sample_sizes: Optional[List[int]] = None
39+
""" 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. """
4340

4441
model_config = ConfigDict(
4542
use_enum_values=True,

0 commit comments

Comments
 (0)