Expand description
Graph traversal and querying utilities.
Two layers:
- Free functions (e.g.
recall_recent,walk_from,find_patterns) — takeGraphStoreplus parameters such asagent_idwhere filtering applies. GraphQuery— returned bySqliteGraphStore::query; holdsagent_idand offers SQL-backed filters (episodes,lineage,by_tag,subgraph_edges,GraphQuery::read_runtime_state, …).
Serialized node JSON uses top-level agent_id and nested node_type fields (e.g. $.node_type.outcome);
edge rows use SQLite columns from_id, to_id, label (see crate::snapshot::SnapshotEdge for the
export/import naming source_id / target_id / edge_type).
Structs§
- Graph
Query - Builder-style queries scoped to one
agent_id(matchesjson_extract(payload, '$.agent_id')).
Functions§
- count_
by_ topic_ cluster - find_
high_ confidence_ facts - Find semantic facts with confidence above a threshold
- find_
patterns - Find procedural patterns by name prefix
- find_
strong_ traits - Find persona traits sorted by strength
- recall_
by_ procedure_ type - recall_
by_ topic_ cluster - recall_
contradictions - recall_
delta_ by_ relevance - recall_
episodes_ by_ conversation - recall_
episodes_ with_ signal - recall_
flagged_ episodes - recall_
low_ success_ procedures - recall_
recent - Recall recent episodes, optionally filtered by tool usage
- recall_
strength_ history - recall_
task_ scoped_ episodes - Task-scoped episodic recall:
- walk_
from - Walk the graph from a starting node, following edges with a specific label