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
@@ -97,7 +97,7 @@ class ActivityService:
timestamp=updated_at,
path_id=entity.path_id,
summary=f"{change_type.value.title()} entity: {entity.name}",
content=entity.description
content=entity.summary
)
)
@@ -60,7 +60,7 @@ class FileOperations:
frontmatter = await writer.format_frontmatter(entity)
file_content = await writer.format_content(
entity=entity,
content=content or entity.description or "",
content=content or entity.summary or "",
)
# Add frontmatter and write
+1 -1
View File
@@ -62,7 +62,7 @@ class SearchService:
content = "\n".join(
[
entity.name,
entity.description or "",
entity.summary or "",
# Add observations
*[f"{obs.category}: {obs.content}" for obs in entity.observations],
# Add relations