TextSegment

Provides information about a text extract in a chat response that can be attributed to a source document.

Types

Link copied to clipboard
class Builder
Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The zero-based location in the response string where the source attribution starts.

Link copied to clipboard

The zero-based location in the response string where the source attribution ends.

Link copied to clipboard

The identifier of the media object associated with the text segment in the source attribution.

Link copied to clipboard

The MIME type (image/png) of the media object associated with the text segment in the source attribution.

Link copied to clipboard

The relevant text excerpt from a source that was used to generate a citation text segment in an Amazon Q Business chat response.

Link copied to clipboard

Source information for a segment of extracted text, including its media type.

Functions

Link copied to clipboard
inline fun copy(block: TextSegment.Builder.() -> Unit = {}): TextSegment
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String