mirror of
https://github.com/cpacker/MemGPT.git
synced 2025-06-03 04:30:22 +00:00
fix: fix passage listing for sources (#894)
This commit is contained in:
parent
cb301eda63
commit
f57f894b8a
@ -1000,8 +1000,8 @@ class SyncServer(Server):
|
||||
return passage_count, document_count
|
||||
|
||||
def list_data_source_passages(self, user_id: str, source_id: str) -> List[Passage]:
|
||||
warnings.warn("list_data_source_passages is not yet implemented, returning empty list.", category=UserWarning)
|
||||
return []
|
||||
# TODO: move this query into PassageManager
|
||||
return self.agent_manager.list_passages(actor=self.user_manager.get_user_or_default(user_id=user_id), source_id=source_id)
|
||||
|
||||
def list_all_sources(self, actor: User) -> List[Source]:
|
||||
"""List all sources (w/ extra metadata) belonging to a user"""
|
||||
|
Loading…
Reference in New Issue
Block a user