Skip to content

VariantDict

Dictionary Type

VariantDict

Bases: TypedDict

Dictionary form of Variant.

Attributes

name instance-attribute
name: Required[str]

The name of the variant. Must be C for control or T1 for treatment.

variant_configuration instance-attribute

The configuration for this variant, including the configuration bundle or target reference.

weight instance-attribute
weight: Required[int]

The percentage of traffic to route to this variant. Weights across all variants must sum to 100.