Skip to content

Citation

Source code in docs_src/capo_bedrock_runtime/types/citation.py
class Citation(TypedDict, closed=True):
    title: NotRequired["str"]
    """<p>The title or identifier of the source document being cited.</p>"""
    source: NotRequired["str"]
    """<p>The source from the original search result that provided the cited content.</p>"""
    source_content: NotRequired[
        "capo_bedrock_runtime.types.citation_source_content_list.CitationSourceContentList"
    ]
    """<p>The specific content from the source document that was referenced or cited in the generated response.</p>"""
    location: NotRequired[
        "capo_bedrock_runtime.types.citation_location.CitationLocation"
    ]
    """<p>The precise location within the source document where the cited content can be found, including character positions, page numbers, or chunk identifiers.</p>"""

location instance-attribute

location: NotRequired[CitationLocation]

The precise location within the source document where the cited content can be found, including character positions, page numbers, or chunk identifiers.

source instance-attribute

source: NotRequired[str]

The source from the original search result that provided the cited content.

source_content instance-attribute

source_content: NotRequired[CitationSourceContentList]

The specific content from the source document that was referenced or cited in the generated response.

title instance-attribute

title: NotRequired[str]

The title or identifier of the source document being cited.