MCPcopy Create free account
hub / github.com/LLMQuant/quant-mind / SourceRef

Class SourceRef

quantmind/knowledge/_base.py:42–52  ·  view source on GitHub ↗

Typed provenance reference. Replaces a bare ``source: str``.

Source from the content-addressed store, hash-verified

40 tree_id: UUID | None = None
41 node_id: UUID | None = None
42
43
44class SourceRef(BaseModel):
45 """Typed provenance reference. Replaces a bare ``source: str``."""
46
47 model_config = ConfigDict(extra="forbid", frozen=True)
48
49 kind: Literal[
50 "arxiv", "http", "doi", "local", "rss", "transcript", "manual"
51 ]
52 uri: str | None = None
53 fetched_at: datetime | None = None
54 content_hash: str | None = None # sha256 of fetched bytes; dedup key.
55

Callers 12

_srcFunction · 0.90
_srcFunction · 0.90
_srcFunction · 0.90
_srcFunction · 0.90
_srcFunction · 0.90
_srcFunction · 0.90
_srcFunction · 0.90
_srcFunction · 0.90
test_minimalMethod · 0.90
test_extra_forbiddenMethod · 0.90
_stub_paperFunction · 0.90

Calls

no outgoing calls

Tested by 12

_srcFunction · 0.72
_srcFunction · 0.72
_srcFunction · 0.72
_srcFunction · 0.72
_srcFunction · 0.72
_srcFunction · 0.72
_srcFunction · 0.72
_srcFunction · 0.72
test_minimalMethod · 0.72
test_extra_forbiddenMethod · 0.72
_stub_paperFunction · 0.72