Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.
Python agent-contextagent-memoryagent-pluginsagentic-ragcontext-databasedsh-pluginknowledge-basememorymemory-managementself-evolvingvector-database
feat(viking_fs) support async grep (#448)
typeck6c0a19eb33cd
diff --git a/openviking/storage/viking_fs.py b/openviking/storage/viking_fs.pyindex 36a5f7f4a..24e8da5fb 100644--- a/openviking/storage/viking_fs.py+++ b/openviking/storage/viking_fs.py@@ -306,8 +306,9 @@ class VikingFS:"""Content search by pattern or keywords."""self._ensure_access(uri, ctx)path = self._uri_to_path(uri, ctx=ctx)- result = self.agfs.grep(- path, pattern, True, case_insensitive, stream=False, node_limit=node_limit+ result = await asyncio.to_thread(+ self.agfs.grep,+ path, pattern, True, case_insensitive, False, node_limit=node_limit)if result.get("matches", None) is None:result["matches"] = []