Skip to content

Commit 3da60b5

Browse files
[FSSDK-12337] Fix experiment type values to match backend
Update ExperimentTypes and ExperimentType Literal to use actual backend values: 'multi_armed_bandit' and 'contextual_multi_armed_bandit' instead of shorthand 'mab' and 'cmab'.
1 parent 14d288d commit 3da60b5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

optimizely/helpers/enums.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,8 @@ class OdpManagerConfig:
231231

232232
class ExperimentTypes:
233233
ab: Final = 'a/b'
234-
mab: Final = 'mab'
235-
cmab: Final = 'cmab'
234+
mab: Final = 'multi_armed_bandit'
235+
cmab: Final = 'contextual_multi_armed_bandit'
236236
td: Final = 'targeted_delivery'
237237
fr: Final = 'feature_rollout'
238238

optimizely/helpers/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class CmabDict(BaseEntity):
117117
trafficAllocation: int
118118

119119

120-
ExperimentType = Literal['a/b', 'mab', 'cmab', 'targeted_delivery', 'feature_rollout']
120+
ExperimentType = Literal['a/b', 'multi_armed_bandit', 'contextual_multi_armed_bandit', 'targeted_delivery', 'feature_rollout']
121121

122122
HoldoutStatus = Literal['Draft', 'Running', 'Concluded', 'Archived']
123123

0 commit comments

Comments
 (0)