Spaces:
Configuration error
Configuration error
Download src/memory/graph.py from Yash030/agentcache: direct link, hf CLI and curl.
- Browser
- Download file 454 Bytes
-
https://huggingface.co/spaces/Yash030/agentcache/resolve/a00a0e3a4e2006a7d820faf42653bc3917a44fc4/src/memory/graph.py
- Command line
-
hf download hf://spaces/Yash030/agentcache@a00a0e3a4e2006a7d820faf42653bc3917a44fc4/src/memory/graph.py
-
curl -L -o graph.py https://huggingface.co/spaces/Yash030/agentcache/resolve/a00a0e3a4e2006a7d820faf42653bc3917a44fc4/src/memory/graph.py
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) | |