Built-in Adapters
- in_memory
- langgraph
- openai_sessions
- mcp
A simple dictionary-backed store for local development and testing. No external dependencies. Data is lost when the process exits.
How Adapters Work
Each adapter translates five canonical operations to the backend:
Adapters also normalize backend errors into canonical error codes:
NOT_FOUND, CONFLICT, VALIDATION_ERROR, PERMISSION_DENIED, and PROVIDER_UNAVAILABLE.
Writing a Custom Adapter
SubclassMemoryAdapter and implement all five abstract methods plus the provider_name property.
The Base Interface
Example: Redis Adapter
Using a Custom Adapter with Memproof
Pass a pre-builtMemproofConfig and override the adapter after construction, or contribute it upstream so it can be selected by name.