diff --git a/skills/memory/intersymbolic_graph.py b/skills/memory/intersymbolic_graph.py new file mode 100644 index 00000000..baad6c63 --- /dev/null +++ b/skills/memory/intersymbolic_graph.py @@ -0,0 +1,27 @@ +""" +--- +title: Intersymbolic Graph Query +description: Queries Timmy's sovereign knowledge graph to find connections and structured facts. +conditions: + - Complex relationship analysis + - Fact checking against structured memory + - Finding non-obvious connections +--- +""" + +from agent.symbolic_memory import SymbolicMemory + +def query_graph(topic: str) -> str: + """ + Queries the knowledge graph for a specific topic and returns structured context. + + Args: + topic: The entity or topic to search for in the graph. + """ + memory = SymbolicMemory() + context = memory.get_context_for(topic) + + if not context: + return f"No symbolic connections found for '{topic}' in the knowledge graph." + + return context