Configuration
Set the adapter tomem0 and provide your mem0 credentials. Memproof will route all memory operations through the mem0 API while applying the full control path.
- Python
- TypeScript
How It Works
When you callmp.remember(), mp.search(), or any other memory operation, Memproof executes the following pipeline before reaching mem0:
1
Auth check
If an auth hook is configured, it validates the caller before anything else runs.
2
Content redaction
PII and secrets are stripped from the content using the
ContentRedactor.3
Risk assessment
The risk engine scores the operation based on content signals, scope, and operation type.
4
Policy evaluation
The policy engine evaluates rules against the operation context. The result is
allow, deny, require_approval, or quarantine.5
mem0 execution
If the policy allows the operation, Memproof calls the mem0 API to persist or retrieve the memory.
6
Audit logging
An immutable event is recorded in the Trailproof audit trail with the full decision trail.
Usage Example
Once configured, use Memproof exactly as you would with any other adapter. The mem0 backend is transparent to the caller.- Python
- TypeScript
Custom Mem0 Client
If you need to customize the HTTP client, connection pooling, or retry behavior, you can provide your ownMem0Client implementation and inject it into the adapter.