Skip to content

Commit b566692

Browse files
committed
fix: handle None from_entity in Context API RelationSummary
Update typedef for RelationSummary Signed-off-by: Drew Cain <groksrc@gmail.com>
1 parent a21c66e commit b566692

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/basic_memory/schemas/memory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ class RelationSummary(BaseModel):
134134
file_path: str
135135
permalink: str
136136
relation_type: str
137-
from_entity: str
137+
from_entity: Optional[str] = None
138138
to_entity: Optional[str] = None
139139
created_at: datetime
140140

0 commit comments

Comments
 (0)