@engramviz/adapter-mem0 wraps a Mem0-like JavaScript client without importing a specific Mem0 distribution. It supports current Platform and OSS response containers for add, search, update, delete, and deleteAll.
Install the published SDK and adapter packages:
Setup
engram.withTurn(...). Calls outside an active turn pass through unchanged.
Retrieval versus context
search and the IDs declared selected by selectedIds. It cannot inspect application prompt construction. Call turn.load only after the application has actually placed those memories into model input.
Asynchronous Platform adds
Mem0 Platform may acknowledge an add with a pending event ID before concrete memory IDs exist. Engram does not fabricate a stored memory from that acknowledgement. The adapter callsonInstrumentationGap and emits no store event. A complete production integration should resolve the event through a webhook or event-status flow, then emit the concrete memory operation.
Delete all
IfdeleteAll does not return affected memory IDs, Engram reports an instrumentation gap. The trace must not pretend to know which records changed.