Values.TextSegmentSourceProvides information about a text extract in a chat response that can be attributed to a source document.
type nonrec t = {beginOffset : Integer.t option;The zero-based location in the response string where the source attribution starts.
*)endOffset : Integer.t option;The zero-based location in the response string where the source attribution ends.
*)snippetExcerpt : SnippetExcerpt.t option;The relevant text excerpt from a source that was used to generate a citation text segment in an Amazon Q Business chat response.
*)mediaId : SourceAttributionMediaId.t option;The identifier of the media object associated with the text segment in the source attribution.
*)mediaMimeType : String_.t option;The MIME type (image/png) of the media object associated with the text segment in the source attribution.
*)sourceDetails : SourceDetails.t option;Source information for a segment of extracted text, including its media type.
*)}val to_value :
t ->
[> `Structure of
(string
* [> `Integer of Integer.t
| `String of SourceAttributionMediaId.t
| `Structure of
(string
* [> `String of SnippetExcerptText.t
| `Structure of
(string
* [> `Enum of string
| `Long of Long.t
| `String of MediaId.t ])
list ])
list ])
list ]