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
fix vikingbot grep/glob/add_resource get response issue (#491)
typeck1b759055d536
diff --git a/bot/vikingbot/agent/tools/ov_file.py b/bot/vikingbot/agent/tools/ov_file.pyindex d16ccfd9c..a086d92e5 100644--- a/bot/vikingbot/agent/tools/ov_file.py+++ b/bot/vikingbot/agent/tools/ov_file.py@@ -218,7 +218,7 @@ class VikingAddResourceTool(OVFileTool):)if result:- root_uri = result.get("result", {}).get("root_uri", "unknown")+ root_uri = result.get("root_uri", "unknown")return f"Successfully added resource: {root_uri}"else:return "Failed to add resource"@@ -272,8 +272,8 @@ class VikingGrepTool(OVFileTool):result = await client.grep(uri, pattern, case_insensitive=case_insensitive)if isinstance(result, dict):- matches = result.get("result", {}).get("matches", [])- count = result.get("result", {}).get("count", 0)+ matches = result.get("matches", [])+ count = result.get("count", 0)else:matches = getattr(result, "matches", [])count = getattr(result, "count", 0)@@ -336,8 +336,8 @@ class VikingGlobTool(OVFileTool):result = await client.glob(pattern, uri=uri or None)if isinstance(result, dict):- matches = result.get("result", {}).get("matches", [])- count = result.get("result", {}).get("count", 0)+ matches = result.get("matches", [])+ count = result.get("count", 0)else:matches = getattr(result, "matches", [])count = getattr(result, "count", 0)