knowledge api tests passing

This commit is contained in:
phernandez
2024-12-14 17:23:10 -06:00
parent 29043168fd
commit f075c29a58
14 changed files with 305 additions and 222 deletions
+5
View File
@@ -60,6 +60,11 @@ class Entity(Base):
cascade="all, delete-orphan"
)
@property
def relations(self):
return self.outgoing_relations + self.incoming_relations
@classmethod
def generate_id(cls, entity_type: str, name: str) -> str:
"""Generate a filesystem path-based ID for this entity."""