TextSegment
¶
Source code in docs_src/capo_qbusiness/types/text_segment.py
begin_offset
instance-attribute
¶
begin_offset: NotRequired[Integer]
The zero-based location in the response string where the source attribution starts.
end_offset
instance-attribute
¶
end_offset: NotRequired[Integer]
The zero-based location in the response string where the source attribution ends.
media_id
instance-attribute
¶
media_id: NotRequired[SourceAttributionMediaId]
The identifier of the media object associated with the text segment in the source attribution.
media_mime_type
instance-attribute
¶
media_mime_type: NotRequired[String]
The MIME type (image/png) of the media object associated with the text segment in the source attribution.
snippet_excerpt
instance-attribute
¶
snippet_excerpt: NotRequired[SnippetExcerpt]
The relevant text excerpt from a source that was used to generate a citation text segment in an Amazon Q Business chat response.
source_details
instance-attribute
¶
source_details: NotRequired[SourceDetails]
Source information for a segment of extracted text, including its media type.