RetrievedContext
¶
Source code in docs_src/capo_context/types/retrieved_context.py
content
instance-attribute
¶
content: NotRequired[RetrievedContextContent]
The retrieved content of the entity.
document_id
instance-attribute
¶
document_id: NotRequired[RetrievedDocumentId]
Identifier of the document. Set when this result is a document (one of nodeId, edgeId, or documentId).
edge_id
instance-attribute
¶
edge_id: NotRequired[EdgeIdentifier]
Identifier of the edge. Set when this result is an edge (one of nodeId, edgeId, or documentId).
entity_type
instance-attribute
¶
entity_type: RetrievedContextEntityType
Specifies whether this result is a node, an edge, or a document. Valid values:
-
NODE- The result is a node. -
EDGE- The result is an edge. -
DOCUMENT- The result is a document.
node_id
instance-attribute
¶
node_id: NotRequired[GenericNodeId]
Identifier of the node. Set when this result is a node (one of nodeId, edgeId, or documentId).
properties
instance-attribute
¶
properties: NotRequired[Metadata]
Arbitrary key-value properties stored on the entity.
summary
instance-attribute
¶
summary: NotRequired[EntitySummary]
Human-readable description or summary of the entity.