BrainAPI is a knowledge graph–powered AI memory layer that transforms unstructured data into structured knowledge, enabling intelligent search, recommendations, and contextual memory for AI agents and applications.
Python ai-agentsai-memoryknowledge-graphknowledge-managementknowledge-representationreccomendation-system
Update src/core/agents/tools/kg_agent/KGAgentRemoveRelationshipTool.py
Christianc3783e069e26
diff --git a/src/core/agents/tools/kg_agent/KGAgentRemoveRelationshipTool.py b/src/core/agents/tools/kg_agent/KGAgentRemoveRelationshipTool.pyindex 7877d03..31deeaa 100644--- a/src/core/agents/tools/kg_agent/KGAgentRemoveRelationshipTool.py+++ b/src/core/agents/tools/kg_agent/KGAgentRemoveRelationshipTool.py@@ -174,7 +174,7 @@ class KGAgentRemoveRelationshipTool(BaseTool):return f"Error removing relationship: {e}"if len(removed_relationships) > 0:- v_ids = [r for _, r, _ in removed_relationships if r.properties.get("v_id")]+ v_ids = [r.properties.get("v_id") for _, r, _ in removed_relationships if r.properties.get("v_id")]if len(v_ids) > 0:self.vector_store.remove_vectors(v_ids, store="relationships", brain_id=self.brain_id