Repository navigation
v0.3.0 — Typed Exceptions, Retries, Intelligence API
What's New
Typed Exception Hierarchy
MemgraphAuthError(401/403) — bad API key or tokenMemgraphConnectionError— cannot reach serverMemgraphRateLimitError(429) — withretry_afterfieldMemgraphValidationError(4xx) — bad request dataMemgraphAPIError(5xx) — server errors
Automatic Retries
- Exponential backoff on rate limits, server errors, and connection errors
- Configurable
max_retries(default: 3) - Auth and validation errors are NOT retried
Memory Intelligence Methods
health()— memory health metricscontradictions()— contradiction reportevaluate(query, user_id)— retrieval scoring breakdownmcis()— Memgraph Cognitive Integrity Score (0-100)benchmark(scenario)— run benchmark scenarios
CLI Improvements
- Non-interactive
initmode for CI/CD (reads from env vars)
New Integration Examples
- CrewAI integration
- LlamaIndex integration
- Updated LangChain and MCP server examples
Full Changelog: v0.2.0...v0.3.0