We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a3adc1 commit 8a065c3Copy full SHA for 8a065c3
2 files changed
src/basic_memory/api/routers/utils.py
@@ -52,7 +52,7 @@ async def to_summary(item: SearchIndexRow | ContextResultRow):
52
file_path=item.file_path,
53
permalink=item.permalink, # pyright: ignore
54
relation_type=item.relation_type, # pyright: ignore
55
- from_entity=from_entity.title, # pyright: ignore
+ from_entity=from_entity.title if from_entity else None,
56
to_entity=to_entity.title if to_entity else None,
57
created_at=item.created_at,
58
)
src/basic_memory/schemas/memory.py
@@ -134,7 +134,7 @@ class RelationSummary(BaseModel):
134
file_path: str
135
permalink: str
136
relation_type: str
137
- from_entity: str
+ from_entity: Optional[str] = None
138
to_entity: Optional[str] = None
139
created_at: datetime
140
0 commit comments