agentcache / src /cache /graph.py
Yash030's picture
feat: migrate agentmemory to agentcache namespace, endpoints, and tools
12a6c9a
Raw
History Blame Contribute Delete
454 Bytes
"""
src/memory/graph.py — Knowledge graph construction.
Public API:
folder_graph_build(kv) — build graph nodes+edges from folder observations
"""
from __future__ import annotations
from typing import Any, Dict
from db import StateKV
import functions as _fn
def folder_graph_build(kv: StateKV) -> Dict[str, Any]:
"""Build a folder-based knowledge graph with nodes, edges, and color assignments."""
return _fn.folder_graph_build(kv)