Skip to content

ToxicLabels

Source code in docs_src/capo_comprehend/types/toxic_labels.py
class ToxicLabels(TypedDict, closed=True):
    labels: NotRequired[
        "capo_comprehend.types.list_of_toxic_content.ListOfToxicContent"
    ]
    """<p>Array of toxic content types identified in the string.</p>"""
    toxicity: NotRequired["capo_comprehend.types.float.Float"]
    """<p>Overall toxicity score for the string. Value range is zero to one, where one is the highest confidence.</p>"""

labels instance-attribute

labels: NotRequired[ListOfToxicContent]

Array of toxic content types identified in the string.

toxicity instance-attribute

toxicity: NotRequired[Float]

Overall toxicity score for the string. Value range is zero to one, where one is the highest confidence.