Repository navigation
everos-cloud 1.3.0: Context Retrieval, permanent deletes with rebuild, memory-space purge
Latest1.3.0 adds Context Retrieval, gives you control over how deletes play out, and adds a way to start a memory space over.
Deletes are now permanent. Since 2026-11-20,
deleteanddelete_by_idsremove memories for good on the server, whichever SDK version calls them. There is no undo. 1.2.x docs that say "soft-delete" are out of date.
Context Retrieval
context runs an LLM that searches in rounds until it has enough evidence to answer the question:
from everos_cloud import EverOS
client = EverOS(api_key="sk-...")
found = client.context("Where did I say I was moving, and when?", user_id="user-1")
for ep in found.episodes:
print(ep.cited, ep.episode)It returns memories, not an answer. cited marks the ones the model relied on. Use it for questions a single search answers poorly: multi-hop, temporal, or spread over several conversations. user_id is required. The server caps the loop at 45 seconds and returns what it found so far.
Deletes, and refreshing what they leave behind
Deletes now remove memories permanently, together with their extracted facts and search-index copies. A delete never spends LLM calls, so what only an LLM can regenerate (the user profile, session summaries, agent skills) is kept and marked stale instead. The delete result tells you so:
r = client.delete_by_ids([id1, id2], user_id="user-1")
print(r.deleted, r.rebuild_required, r.targets) # 2 True ['profile']Profile items carry stale=True until you refresh them. rebuild regenerates them from the memories that remain. Batch your deletes first, then rebuild once:
job = client.rebuild(user_id="user-1") # status: "queued"
done = client.rebuild_wait(job) # polls until it ends
print(done.status) # "succeeded"rebuild(..., dry_run=True) reports what would be rebuilt, and estimated_episodes sizes a profile rebuild, without spending anything. The call is free. The extraction it runs is metered like any other, so it is refused with a 429 once your usage quota is exhausted. There is one job per owner at a time: a second call returns already_running. rebuild_status(job_id) reads a job without waiting.
Keep an agent inside its user, app and project
update and delete_by_ids take optional guards:
client.delete_by_ids(ids, user_id=session.user_id, app_id="support-bot", project_id="prod")user_id: a memory owned by anyone else is refused like a missing one.updateanswers404, anddelete_by_idsskips it.app_id/project_id: the same rule for a memory outside that app or project.
Take these values from your own session, never from model output, so a wrong or invented id cannot reach someone else's memory. The guards are never filled from the client's app_id / project_id defaults, so existing calls behave as before. delete_by_ids also returns deleted, the number of memories the call actually removed.
Start a memory space over
Purge permanently deletes all memory data in the memory space, or in one app or project, in two steps:
req = client.purge_request("project", app_id="my-app", project_id="old") # deletes nothing
print(req.summary) # what would go; check `complete`
job = client.purge_confirm(req) # within 5 minutes
client.purge_wait(job.job_id)There is no undo, and there is deliberately no one-call purge. Writes to the memory space return 409 while the purge runs.
Errors you can branch on
EverOSAPIError now carries the API's error code and message along with status:
from everos_cloud import EverOSAPIError
try:
client.update(memory_id, subject="x", user_id="user-1")
except EverOSAPIError as e:
if e.code == "not_found":
...Good to know
add queues the write by default. If you flush right after, add with async_mode=False, or the flush can run before the messages land and extract nothing.
Compatibility
Nothing was removed or renamed. The new methods are context, rebuild, rebuild_status, rebuild_wait, purge_request, purge_confirm, purge_get and purge_wait. On the typed client they are client.memory.retrieve_context, rebuild_memory, get_rebuild_status, request_purge, confirm_purge and get_purge_job. Requires Python 3.12+.
pip install --upgrade everos-cloudFull contract: openapi.json · Usage: quickstart.md