Version: latest
agrag.common.data_models.decision.DocumentSupport
Bases: BaseModel
A stored document support, with the passage it names.
Attributes:
- kind (
Literal[DOCUMENT]) – Alwaysdocument. - evidence_id (
str) – The evidence id the caller cited. - document_key (
str) – The stable key of the cited document. - document_node_id (
UUID) – The id of the Document node. - content_hash_prefix (
str) – The first 16 hex characters of the cited version. - reference_kind (
EvidenceKind) – Whether the id names a span or a chunk. - char_start (
int | None) – Start offset of a span, or None for a chunk. - char_end (
int | None) – End offset of a span, or None for a chunk. - chunk_id (
UUID | None) – The chunk id of a chunk reference, or None for a span. - recorded_activation_seq (
int | None) – The document's activation sequence number when the decision was recorded.
char_end
char_end: int | None = None
char_start
char_start: int | None = None
chunk_id
chunk_id: UUID | None = None
content_hash
content_hash: str
content_hash_prefix
content_hash_prefix: str
document_key
document_key: str
document_node_id
document_node_id: UUID
evidence_id
evidence_id: str
kind
kind: Literal[SupportKind.DOCUMENT]
model_config
model_config = ConfigDict(frozen=True)
recorded_activation_seq
recorded_activation_seq: int | None = None
reference_kind
reference_kind: EvidenceKind