feat: add Intersymbolic Graph Query skill
This commit is contained in:
27
skills/memory/intersymbolic_graph.py
Normal file
27
skills/memory/intersymbolic_graph.py
Normal file
@@ -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
|
||||||
Reference in New Issue
Block a user