Skip to content

Reference

Source code in docs_src/capo_context/types/reference.py
class Reference(TypedDict, closed=True):
    node_id: NotRequired["capo_context.types.generic_node_id.GenericNodeId"]
    """<p>Identifier of the referenced node. Set when the reference is a node.</p>"""
    edge_id: NotRequired["capo_context.types.edge_identifier.EdgeIdentifier"]
    """<p>Identifier of the referenced edge. Set when the reference is an edge.</p>"""
    document_id: NotRequired[
        "capo_context.types.retrieved_document_id.RetrievedDocumentId"
    ]
    """<p>Identifier of the referenced document. Set when the reference is a document.</p>"""

document_id instance-attribute

document_id: NotRequired[RetrievedDocumentId]

Identifier of the referenced document. Set when the reference is a document.

edge_id instance-attribute

edge_id: NotRequired[EdgeIdentifier]

Identifier of the referenced edge. Set when the reference is an edge.

node_id instance-attribute

node_id: NotRequired[GenericNodeId]

Identifier of the referenced node. Set when the reference is a node.