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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user