One import change
Keep the rest of your agent loop.
pip install madb-anthropic # before from anthropic import Anthropic # after from madb_anthropic import Anthropic
Your existing messages.create() calls remain the integration surface.
Runtime contract
Recall before inference. Persist after outcome.
- Resolve the stable tenant and session context.
- Recall relevant memories with causal and recency signals.
- Preface the model context with bounded memory.
- Persist the user turn, agent response and causal relationship.
Success means the same memory contract survives the jump from prototype to production code.
Hosted API is not shipped
The local SDK path is available. A future MADB_API_ENDPOINT upgrade path is wired, but the hosted service must not be represented as available until it launches.