Skip to content

Bedrock Runtime  >  Structures  >  DocumentCharLocation

DocumentCharLocation

Structure Class

DocumentCharLocation dataclass

Specifies a character-level location within a document, providing precise positioning information for cited content using start and end character indices.

Attributes

document_index class-attribute instance-attribute
document_index: int | None = None

The index of the document within the array of documents provided in the request.

end class-attribute instance-attribute
end: int | None = None

The ending character position of the cited content within the document.

start class-attribute instance-attribute
start: int | None = None

The starting character position of the cited content within the document.