refactor entity.entity_type to be freeform, add summary and content_type

This commit is contained in:
phernandez
2025-01-07 19:00:08 -06:00
parent 5229641c61
commit 6686c331a5
12 changed files with 46 additions and 56 deletions
@@ -83,7 +83,7 @@ class KnowledgeSyncService:
# Update fields from markdown
db_entity.name = markdown.content.title
db_entity.entity_type = markdown.frontmatter.type
db_entity.description = markdown.content.description
db_entity.summary = markdown.content.description
# Clear and update observations
await self.observation_service.delete_by_entity(db_entity.id)
@@ -102,7 +102,7 @@ class KnowledgeSyncService:
{
"name": db_entity.name,
"entity_type": db_entity.entity_type,
"description": db_entity.description,
"description": db_entity.summary,
# Mark as incomplete
"checksum": None,
},