From 1608a3008775ab769da3151d1bf0a97e002dc559 Mon Sep 17 00:00:00 2001 From: jsonbailey Date: Tue, 20 Jan 2026 22:45:37 +0000 Subject: [PATCH 1/2] fix: Update reason documentation with inExperiment value --- ldclient/evaluation.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ldclient/evaluation.py b/ldclient/evaluation.py index 8867cc8e..864a0c11 100644 --- a/ldclient/evaluation.py +++ b/ldclient/evaluation.py @@ -54,6 +54,11 @@ def reason(self) -> dict: * ``errorKind``: further describes the nature of the error if the kind was ``ERROR``, e.g. ``"FLAG_NOT_FOUND"`` + * ``inExperiment``: True if the evaluation was part of an experiment. This is set when + the evaluation resulted in the context being assigned to a variation that is part of a + running experiment. This property is used by LaunchDarkly's Experimentation product to + track experiment assignment events. + * ``bigSegmentsStatus``: describes the validity of Big Segment information, if and only if the flag evaluation required querying at least one Big Segment; otherwise it returns None. Allowable values are defined in :class:`BigSegmentsStatus`. For more information, read the From 6290d360185bb586a5f8c5e8e4c88a2e4030fb29 Mon Sep 17 00:00:00 2001 From: jsonbailey Date: Tue, 20 Jan 2026 22:57:04 +0000 Subject: [PATCH 2/2] simplify wording --- ldclient/evaluation.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ldclient/evaluation.py b/ldclient/evaluation.py index 864a0c11..18aa9e29 100644 --- a/ldclient/evaluation.py +++ b/ldclient/evaluation.py @@ -54,10 +54,8 @@ def reason(self) -> dict: * ``errorKind``: further describes the nature of the error if the kind was ``ERROR``, e.g. ``"FLAG_NOT_FOUND"`` - * ``inExperiment``: True if the evaluation was part of an experiment. This is set when - the evaluation resulted in the context being assigned to a variation that is part of a - running experiment. This property is used by LaunchDarkly's Experimentation product to - track experiment assignment events. + * ``inExperiment``: This is true if the evaluation resulted in an experiment rollout and + served one of the variations in the experiment. Otherwise it is false. * ``bigSegmentsStatus``: describes the validity of Big Segment information, if and only if the flag evaluation required querying at least one Big Segment; otherwise it returns None.