Graph-Native Infrastructure for Context and Accountable AI Systems
Python agent-memoryaiai-governanceai-infrastructureartificial-intelligencecontext-engineeringcontext-graphsdata-engineeringdecision-intelligencedeveloper-toolsexplainable-aigenerative-aigraph-ragknowledge-graphllmontologyprovenancepythonreasoningsemantic-search
Fix precedent search callers: Update methods to use correct find_precedents_by_scenario
KaifAhmad1e3ec5b151a1a
diff --git a/semantica/context/agent_context.py b/semantica/context/agent_context.pyindex 6f48ff74..0bd4adeb 100644--- a/semantica/context/agent_context.py+++ b/semantica/context/agent_context.py@@ -1659,9 +1659,9 @@ class AgentContext:raise RuntimeError("Decision tracking is not enabled")# Delegate to ContextGraph if available- if self._decision_backend == "context_graph" and hasattr(self.knowledge_graph, "find_precedents"):+ if self._decision_backend == "context_graph" and hasattr(self.knowledge_graph, "find_precedents_by_scenario"):try:- precedents = self.knowledge_graph.find_precedents(+ precedents = self.knowledge_graph.find_precedents_by_scenario(scenario=scenario,category=category,limit=limit,diff --git a/semantica/context/context_graph.py b/semantica/context/context_graph.pyindex 2eda4d3c..05470197 100644--- a/semantica/context/context_graph.py+++ b/semantica/context/context_graph.py@@ -2078,7 +2078,7 @@ class ContextGraph:Returns:List of similar decisions with similarity scores"""- return self.find_precedents(+ return self.find_precedents_by_scenario(scenario=scenario,category=category,limit=max_results,