Skip to content

DiversityConfig

Source code in docs_src/capo_customer_profiles/types/diversity_config.py
class DiversityConfig(TypedDict, closed=True):
    diversity_columns: NotRequired[
        "capo_customer_profiles.types.diversity_columns_list.DiversityColumnsList"
    ]
    """<p>A list of up to two diversity columns. Each column defines a cap on the number or percentage of recommended items that share the same value for that column.</p>"""

diversity_columns instance-attribute

diversity_columns: NotRequired[DiversityColumnsList]

A list of up to two diversity columns. Each column defines a cap on the number or percentage of recommended items that share the same value for that column.