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

Class GraphKnowledge

quantmind/knowledge/_graph.py:21–40  ·  view source on GitHub ↗

Reserved for cross-item edges. NOT IMPLEMENTED. Future shape (sketched, subject to change): - ``nodes: dict[UUID, NodeRef]`` where ``NodeRef = (knowledge_id, knowledge_type)`` - ``edges: list[Edge]`` where ``Edge = (from, to, kind, weight, evidence)`` Use cases under consideration

Source from the content-addressed store, hash-verified

19
20
21class GraphKnowledge(BaseKnowledge):
22 """Reserved for cross-item edges. NOT IMPLEMENTED.
23
24 Future shape (sketched, subject to change):
25
26 - ``nodes: dict[UUID, NodeRef]`` where ``NodeRef = (knowledge_id, knowledge_type)``
27 - ``edges: list[Edge]`` where ``Edge = (from, to, kind, weight, evidence)``
28
29 Use cases under consideration: paper citation graph, factor lineage,
30 news–entity co-occurrence. An issue will be opened when the first
31 concrete need arrives (PR8+).
32 """
33
34 def __init_subclass__(cls, **kwargs: Any) -> None:
35 super().__init_subclass__(**kwargs)
36 raise NotImplementedError(
37 "GraphKnowledge is a design-intent placeholder; subclassing is "
38 "blocked until the shape is finalised. Open a tracking issue "
39 "before lifting this guard."
40 )

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected