Skip to main content

API Reference

Memproof exposes a single entry point — the Memproof class — that wires together policy evaluation, risk assessment, event auditing, and adapter-backed storage behind a small async API.
All memory operations (remember, get, update, forget, search) flow through the same internal pipeline:
  1. The request is validated and a scope/context is built.
  2. A risk score is computed by the RiskEngine.
  3. The PolicyEngine evaluates the configured rules and returns an allow/deny/quarantine/require-approval decision.
  4. If allowed, the operation is forwarded to the configured MemoryAdapter (LangGraph, OpenAI Sessions, MCP, or in-memory).
  5. An immutable TrailEvent is written to the Trailproof audit trail for every step.

Core Classes

Quick Start

Enumerations

Memproof defines several enums that appear throughout the API: See Models for full details on every enum and model.