Skip to content

everos-cloud 1.2.0: fix, remove and rate single memories

Latest

Choose a tag to compare

@dani1005 dani1005 released this 09 Oct 20:58
151cfdb

Three new memory methods let you fix, remove and rate individual memories after they are extracted.

Fix one memory

update rewrites one episode. Pass only the fields you want to change:

from everos_cloud import EverOS

client = EverOS(api_key="sk-...")

ep = client.update(
    memory_id,
    subject="Moving to Lisbon",
    reason="wrong_subject",
)
print(ep.edited_at)

You can change episode, summary and subject. reason is a code such as "wrong_subject", or {"code": ..., "note": ...} if you want to add a note. If the new values match what is already stored, the result has unchanged=True.

Remove memories by id

delete_by_ids deletes 1 to 50 memories in one call:

client.delete_by_ids([id1, id2], reason="redundant")

Ids that do not exist are skipped. A malformed id rejects the whole batch with a 422, so nothing is deleted. To clear everything for a user, agent or session, keep using delete.

Rate a memory

feedback records whether a memory was right:

client.feedback(memory_id, "positive")
client.feedback(
    memory_id,
    "negative",
    reason="outdated",
    note="She moved again in March",
    suggestion="Lives in Porto",
)

reason and suggestion are accepted with a negative rating only; note works with either. Feedback reasons include outdated, which update and delete_by_ids do not accept; those two take missing instead. For a profile memory, pass item_id to rate a single item inside it.

Earlier errors

A seconds-scale timestamp on a message now fails when the message is built, before any request is sent, instead of coming back as a 422 from the server.

Compatibility

Nothing was removed or renamed. The three new methods are named after their routes, like the other memory methods. On the typed client they are client.memory.update_memory, delete_memories_by_ids and submit_feedback.

pip install --upgrade everos-cloud

Full contract: openapi.json · Usage: quickstart.md