Skip to content

Citation

Source code in docs_src/capo_context/types/citation.py
class Citation(TypedDict, closed=True):
    start_index: "int"
    """<p>The character offset in <code>answer</code> where the cited span begins.</p>"""
    end_index: "int"
    """<p>The character offset in <code>answer</code> where the cited span ends (exclusive).</p>"""
    references: "capo_context.types.reference_list.ReferenceList"
    """<p>The entities in retrievedContext that support the span, referenced by identity.</p>"""

end_index instance-attribute

end_index: int

The character offset in answer where the cited span ends (exclusive).

references instance-attribute

references: ReferenceList

The entities in retrievedContext that support the span, referenced by identity.

start_index instance-attribute

start_index: int

The character offset in answer where the cited span begins.