Skip to content

TextWithHighlights

Source code in docs_src/capo_kendra/types/text_with_highlights.py
class TextWithHighlights(TypedDict, closed=True):
    text: NotRequired["capo_kendra.types.string.String"]
    """<p>The text to display to the user.</p>"""
    highlights: NotRequired["capo_kendra.types.highlight_list.HighlightList"]
    """<p>The beginning and end of the text that should be highlighted.</p>"""

highlights instance-attribute

highlights: NotRequired[HighlightList]

The beginning and end of the text that should be highlighted.

text instance-attribute

text: NotRequired[String]

The text to display to the user.