mirror of
https://github.com/basicmachines-co/basic-memory
synced 2026-06-21 13:47:35 +00:00
refactor entity.entity_type to be freeform, add summary and content_type
This commit is contained in:
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user