Skip to content

Commit

Permalink
memory search clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
syedhabib39 committed Dec 23, 2024
1 parent 425eb4f commit 997d0e6
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion superagentx/agentxpipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ async def retrieve_memory(
return await self.memory.search(
query=query_instruction,
memory_id=self.memory_id,
chat_id=self.chat_id,
limit=10,
)

Expand Down
1 change: 0 additions & 1 deletion superagentx/memory/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ async def search(
self,
query: str,
memory_id: str,
chat_id: str,
limit: int = 10,
filters: dict | None = None
) -> list[dict]:
Expand Down
3 changes: 1 addition & 2 deletions tests/memory/test_memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,7 @@ async def test_search(self, test_memory_init: dict):
client: Memory = test_memory_init.get("client")
response = await client.search(
query="agentic",
memory_id=datas.get("memory_id"),
chat_id=datas.get("chat_id")
memory_id=datas.get("memory_id")
)
logger.info(response)
return response

0 comments on commit 997d0e6

Please sign in to comment.