Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions methods/EverCore/demo/utils/simple_memory_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,14 @@ async def store(self, content: str, sender: str = "User") -> bool:
async with httpx.AsyncClient(timeout=500.0) as client:
response = await client.post(self.memorize_url, json=payload)
response.raise_for_status()

# Background mode returns 202 Accepted
if response.status_code == 202:
print(
f" ⏳ Accepted: {content[:40]}... (Processing in background)"
)
return True

result = response.json()

# v1 response: {"data": {"status": "...", "count": N, ...}}
Expand Down