Share via


TextHighlight Class

Refers to a substring of content within another field.

Constructor

pydantic model TextHighlight

Parameters

Name Description
text
Required
str

Defines the snippet of text to highlight

occurrence
Required
int

Occurrence of the text field within the referenced text, if multiple exist.

Keyword-Only Parameters

Name Description
text
Required
occurrence
Required

Attributes

occurrence

field occurrence: int [Required]

text

field text: str [Required]